System.Object
Namespace: Umbraco.Cms.Core.Models Assembly: Umbraco.Core.dll Syntaxpublic class ContentScheduleCollection : INotifyCollectionChanged, IDeepCloneable
Properties View Source FullSchedule
Returns all schedules registered
Declarationpublic IReadOnlyList<ContentSchedule> FullSchedule { get; }
Property Value Methods View Source Add(Nullable<DateTime>, Nullable<DateTime>)
Adds a new schedule for invariant content
Declarationpublic bool Add(DateTime? releaseDate, DateTime? expireDate)
Parameters Type Name Description System.Nullable<DateTime> releaseDate System.Nullable<DateTime> expireDate Returns Type Description System.Boolean View Source Add(String, Nullable<DateTime>, Nullable<DateTime>)
Adds a new schedule for a culture
Declarationpublic bool Add(string culture, DateTime? releaseDate, DateTime? expireDate)
Parameters Type Name Description System.String culture System.Nullable<DateTime> releaseDate System.Nullable<DateTime> expireDate Returns Type Description System.Boolean
true if successfully added, false if validation fails
View Source Add(ContentSchedule)Add an existing schedule
Declarationpublic void Add(ContentSchedule schedule)
Parameters View Source AddOrUpdate(String, DateTime, ContentScheduleAction) Declaration
public void AddOrUpdate(string culture, DateTime dateTime, ContentScheduleAction action)
Parameters View Source Clear(String, ContentScheduleAction, Nullable<DateTime>)
Clear all of the scheduled change type for the culture
Declarationpublic void Clear(string culture, ContentScheduleAction action, DateTime? date = null)
Parameters Type Name Description System.String culture ContentScheduleAction action System.Nullable<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
Declarationpublic void Clear(ContentScheduleAction action, DateTime? changeDate = null)
Parameters Type Name Description ContentScheduleAction action System.Nullable<DateTime> changeDate
If specified, will clear all entries with dates less than or equal to the value
View Source ClearCollectionChangedEvents()Clears all CollectionChanged event handlers
Declarationpublic void ClearCollectionChangedEvents()
View Source CreateWithEntry(Nullable<DateTime>, Nullable<DateTime>) Declaration
public static ContentScheduleCollection CreateWithEntry(DateTime? release, DateTime? expire)
Parameters Type Name Description System.Nullable<DateTime> release System.Nullable<DateTime> expire Returns View Source CreateWithEntry(String, Nullable<DateTime>, Nullable<DateTime>) Declaration
public static ContentScheduleCollection CreateWithEntry(string culture, DateTime? release, DateTime? expire)
Parameters Type Name Description System.String culture System.Nullable<DateTime> release System.Nullable<DateTime> expire Returns 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 GetHashCode() Declaration
public override int GetHashCode()
Returns Type Description System.Int32 View Source GetPending(ContentScheduleAction, DateTime)
Returns all pending schedules based on the date and type provided
Declarationpublic IReadOnlyList<ContentSchedule> GetPending(ContentScheduleAction action, DateTime date)
Parameters Returns View Source GetSchedule(Nullable<ContentScheduleAction>)
Gets the schedule for invariant content
Declarationpublic IEnumerable<ContentSchedule> GetSchedule(ContentScheduleAction? action = null)
Parameters Returns View Source GetSchedule(String, Nullable<ContentScheduleAction>)
Gets the schedule for a culture
Declarationpublic IEnumerable<ContentSchedule> GetSchedule(string culture, ContentScheduleAction? action = null)
Parameters Returns View Source Remove(ContentSchedule)
Remove a scheduled change
Declarationpublic void Remove(ContentSchedule change)
Parameters View Source RemoveIfExists(String, ContentScheduleAction) Declaration
public void RemoveIfExists(string culture, ContentScheduleAction action)
Parameters Events View Source CollectionChanged Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type Type Description System.Collections.Specialized.NotifyCollectionChangedEventHandler
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4