Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ContentSchedule(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
    View Source

    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 Source

    Action

    Gets the action to take.

    Declaration
    [DataMember]
    public ContentScheduleAction Action { get; }
    Property Value
    Type Description
    ContentScheduleAction
    View Source

    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.

    View Source

    Date

    Gets the date of the scheduled action.

    Declaration
    [DataMember]
    public DateTime Date { get; }
    Property Value
    Type Description
    DateTime
    View Source

    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 Source

    DeepClone()

    Declaration
    public object DeepClone()
    Returns
    Type Description
    object
    View Source

    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.

    View Source

    Equals(ContentSchedule)

    Declaration
    public bool Equals(ContentSchedule other)
    Parameters
    Type Name Description
    ContentSchedule other
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX