A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://apidocs.umbraco.com/v15/csharp/api/Umbraco.Cms.Core.Models.ContentScheduleCollection.html below:

View Source Class ContentScheduleCollection Inheritance

System.Object

Namespace: Umbraco.Cms.Core.Models Assembly: Umbraco.Core.dll Syntax
public class ContentScheduleCollection : INotifyCollectionChanged, IDeepCloneable
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<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

Declaration
public 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

Declaration
public 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

Declaration
public 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

Declaration
public 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

Declaration
public 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

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 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