View Source
Class ContentScheduleCollection
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class ContentScheduleCollection : INotifyCollectionChanged, IDeepCloneable, IEquatable<ContentScheduleCollection>
Properties
View Source
FullSchedule
Returns all schedules registered
Declaration
public IReadOnlyList<ContentSchedule> FullSchedule { get; }
Property Value
Methods
View Source
Add(Nullable<DateTime>, Nullable<DateTime>)
Adds a new schedule for invariant content
Declaration
public bool Add(DateTime? releaseDate, DateTime? expireDate)
Parameters
Type |
Name |
Description |
System.Nullable<System.DateTime> |
releaseDate |
|
System.Nullable<System.DateTime> |
expireDate |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Add(String, Nullable<DateTime>, Nullable<DateTime>)
Adds a new schedule for a culture
Declaration
public bool Add(string culture, DateTime? releaseDate, DateTime? expireDate)
Parameters
Type |
Name |
Description |
System.String |
culture |
|
System.Nullable<System.DateTime> |
releaseDate |
|
System.Nullable<System.DateTime> |
expireDate |
|
Returns
Type |
Description |
System.Boolean |
true if successfully added, false if validation fails
|
View Source
Add(ContentSchedule)
Declaration
public void Add(ContentSchedule schedule)
Parameters
View Source
Clear(String, ContentScheduleAction, Nullable<DateTime>)
Clear all of the scheduled change type for the culture
Declaration
public void Clear(string culture, ContentScheduleAction action, DateTime? date = null)
Parameters
Type |
Name |
Description |
System.String |
culture |
|
ContentScheduleAction |
action |
|
System.Nullable<System.DateTime> |
date |
If specified, will clear all entries with dates less than or equal to the value
|
View Source
Clear(ContentScheduleAction, Nullable<DateTime>)
Clear all of the scheduled change type for invariant content
Declaration
public void Clear(ContentScheduleAction action, DateTime? changeDate = null)
Parameters
Type |
Name |
Description |
ContentScheduleAction |
action |
|
System.Nullable<System.DateTime> |
changeDate |
If specified, will clear all entries with dates less than or equal to the value
|
View Source
ClearCollectionChangedEvents()
Declaration
public void ClearCollectionChangedEvents()
View Source
DeepClone()
Declaration
public object DeepClone()
Returns
Type |
Description |
System.Object |
|
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Equals(ContentScheduleCollection)
Declaration
public bool Equals(ContentScheduleCollection other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
GetPending(ContentScheduleAction, DateTime)
Returns all pending schedules based on the date and type provided
Declaration
public IReadOnlyList<ContentSchedule> GetPending(ContentScheduleAction action, DateTime date)
Parameters
Returns
View Source
GetSchedule(Nullable<ContentScheduleAction>)
Gets the schedule for invariant content
Declaration
public IEnumerable<ContentSchedule> GetSchedule(ContentScheduleAction? action = null)
Parameters
Returns
View Source
GetSchedule(String, Nullable<ContentScheduleAction>)
Gets the schedule for a culture
Declaration
public IEnumerable<ContentSchedule> GetSchedule(string culture, ContentScheduleAction? action = null)
Parameters
Returns
View Source
Remove(ContentSchedule)
Remove a scheduled change
Declaration
public void Remove(ContentSchedule change)
Parameters
Events
View Source
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
|