Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentPublishedEventArgs

    Represents event data for the Published event.

    Inheritance
    System.Object
    System.EventArgs
    CancellableEventArgs
    CancellableObjectEventArgs
    CancellableObjectEventArgs<System.Collections.Generic.IEnumerable<IContent>>
    CancellableEnumerableObjectEventArgs<IContent>
    PublishEventArgs<IContent>
    Namespace: Umbraco.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public class ContentPublishedEventArgs : PublishEventArgs<IContent>, IEquatable<CancellableEventArgs>, IEquatable<CancellableObjectEventArgs<IEnumerable<IContent>>>, IEquatable<CancellableEnumerableObjectEventArgs<IContent>>, IEquatable<PublishEventArgs<IContent>>

    Constructors

    View Source

    ContentPublishedEventArgs(IEnumerable<IContent>, Boolean, EventMessages)

    Initializes a new instance of the ContentPublishedEventArgs class.

    Declaration
    public ContentPublishedEventArgs(IEnumerable<IContent> eventObject, bool canCancel, EventMessages eventMessages)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IContent> eventObject
    System.Boolean canCancel
    EventMessages eventMessages

    Methods

    View Source

    HasPublishedCulture(IContent, String)

    Determines whether a culture has been published, during a Published event.

    Declaration
    public bool HasPublishedCulture(IContent content, string culture)
    Parameters
    Type Name Description
    IContent content
    System.String culture
    Returns
    Type Description
    System.Boolean
    View Source

    HasUnpublishedCulture(IContent, String)

    Determines whether a culture has been unpublished, during a Published event.

    Declaration
    public bool HasUnpublishedCulture(IContent content, string culture)
    Parameters
    Type Name Description
    IContent content
    System.String culture
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentPublishedEventArgs(IEnumerable<IContent>, Boolean, EventMessages)
    • Methods
      • HasPublishedCulture(IContent, String)
      • HasUnpublishedCulture(IContent, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX