Class ContentPublishingEventArgs
Represents event data for the Publishing event.
Inheritance
System.Object
System.EventArgs
Namespace: Umbraco.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class ContentPublishingEventArgs : PublishEventArgs<IContent>, IEquatable<CancellableEventArgs>, IEquatable<CancellableObjectEventArgs<IEnumerable<IContent>>>, IEquatable<CancellableEnumerableObjectEventArgs<IContent>>, IEquatable<PublishEventArgs<IContent>>
Constructors
View SourceContentPublishingEventArgs(IEnumerable<IContent>, EventMessages)
Initializes a new instance of the ContentPublishingEventArgs class.
Declaration
public ContentPublishingEventArgs(IEnumerable<IContent> eventObject, EventMessages eventMessages)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IContent> | eventObject | |
EventMessages | eventMessages |
Methods
View SourceIsPublishingCulture(IContent, String)
Determines whether a culture is being published, during a Publishing event.
Declaration
public bool IsPublishingCulture(IContent content, string culture)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | |
System.String | culture |
Returns
Type | Description |
---|---|
System.Boolean |
IsUnpublishingCulture(IContent, String)
Determines whether a culture is being unpublished, during a Publishing event.
Declaration
public bool IsUnpublishingCulture(IContent content, string culture)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | |
System.String | culture |
Returns
Type | Description |
---|---|
System.Boolean |