Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I'm using the ContentService > GetById function and in V7 I use to be able to see the ExpiryDate, but now I can't seem to see this property in the intellisense anymore.
Can anyone tell me where I can find this property?
Thanks
Paul
It is ExpireDate in v8.
I'm not seeing it in the intellisense list with the others properties such as PublishDate, Name, Level etc.
Did you sort it out? I can't find ExpireDate on IContent in V8 either? It's there in V7.
Regards, Magnus
Hi Magnus,
I'm afraid not - still hoping someone will point it out. I wasn't sure if it was in the Properties collection - i'll have to check.
I've found something, it's not as neat but it will get the value.
ContentSchedule.GetSchedule(ContentScheduleAction.Expire).Select(x=> x.Date).OrderByDescending(o=>o.Date).FirstOrDefault()
Hope it helps.
thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
ExpireDate property in Umbraco 8
Hello,
I'm using the ContentService > GetById function and in V7 I use to be able to see the ExpiryDate, but now I can't seem to see this property in the intellisense anymore.
Can anyone tell me where I can find this property?
Thanks
Paul
It is ExpireDate in v8.
I'm not seeing it in the intellisense list with the others properties such as PublishDate, Name, Level etc.
Did you sort it out? I can't find ExpireDate on IContent in V8 either? It's there in V7.
Regards, Magnus
Hi Magnus,
I'm afraid not - still hoping someone will point it out. I wasn't sure if it was in the Properties collection - i'll have to check.
Thanks
Paul
Hi Magnus,
I've found something, it's not as neat but it will get the value.
ContentSchedule.GetSchedule(ContentScheduleAction.Expire).Select(x=> x.Date).OrderByDescending(o=>o.Date).FirstOrDefault()
Hope it helps.
thanks
is working on a reply...