Class ContentPublishedEventArgs
Represents event data for the Published event.
Inheritance
System.Object
System.EventArgs
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 SourceContentPublishedEventArgs(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 SourceHasPublishedCulture(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 |
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 |