Class ContentSchedule
Represents a scheduled action for a document.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class ContentSchedule : IDeepCloneable
Constructors
View SourceContentSchedule(Guid, string, DateTime, ContentScheduleAction)
Initializes a new instance of the ContentSchedule class.
Declaration
public ContentSchedule(Guid id, string culture, DateTime date, ContentScheduleAction action)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| string | culture | |
| DateTime | date | |
| ContentScheduleAction | action |
ContentSchedule(string, DateTime, ContentScheduleAction)
Initializes a new instance of the ContentSchedule class.
Declaration
public ContentSchedule(string culture, DateTime date, ContentScheduleAction action)
Parameters
| Type | Name | Description |
|---|---|---|
| string | culture | |
| DateTime | date | |
| ContentScheduleAction | action |
Properties
View SourceAction
Gets the action to take.
Declaration
[DataMember]
public ContentScheduleAction Action { get; }
Property Value
| Type | Description |
|---|---|
| ContentScheduleAction |
Culture
Gets the culture of the scheduled action.
Declaration
[DataMember]
public string Culture { get; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
string.Empty represents the invariant culture.
Date
Gets the date of the scheduled action.
Declaration
[DataMember]
public DateTime Date { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Id
Gets the unique identifier of the document targeted by the scheduled action.
Declaration
[DataMember]
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
Methods
View SourceDeepClone()
Declaration
public object DeepClone()
Returns
| Type | Description |
|---|---|
| object |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Equals(ContentSchedule)
Declaration
public bool Equals(ContentSchedule other)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentSchedule | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |