Class ContentSavingEventArgs
Represent event data for the Saving event.
Inheritance
System.Object
System.EventArgs
Namespace: Umbraco.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class ContentSavingEventArgs : SaveEventArgs<IContent>, IEquatable<CancellableEventArgs>, IEquatable<CancellableObjectEventArgs<IEnumerable<IContent>>>, IEquatable<CancellableEnumerableObjectEventArgs<IContent>>
Constructors
View SourceContentSavingEventArgs(IEnumerable<IContent>, EventMessages)
Initializes a new instance of the ContentSavingEventArgs class.
Declaration
public ContentSavingEventArgs(IEnumerable<IContent> eventObject, EventMessages eventMessages)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IContent> | eventObject | |
EventMessages | eventMessages |
ContentSavingEventArgs(IContent, EventMessages)
Initializes a new instance of the ContentSavingEventArgs class.
Declaration
public ContentSavingEventArgs(IContent eventObject, EventMessages eventMessages)
Parameters
Type | Name | Description |
---|---|---|
IContent | eventObject | |
EventMessages | eventMessages |
Methods
View SourceIsSavingCulture(IContent, String)
Determines whether a culture is being saved, during a Saving event.
Declaration
public bool IsSavingCulture(IContent content, string culture)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | |
System.String | culture |
Returns
Type | Description |
---|---|
System.Boolean |
ToContentPublishedEventArgs()
Converts ContentSavingEventArgs to ContentPublishedEventArgs while preserving all args state
Declaration
public ContentPublishedEventArgs ToContentPublishedEventArgs()
Returns
Type | Description |
---|---|
ContentPublishedEventArgs |
ToContentPublishingEventArgs()
Converts ContentSavingEventArgs to ContentPublishingEventArgs while preserving all args state
Declaration
public ContentPublishingEventArgs ToContentPublishingEventArgs()
Returns
Type | Description |
---|---|
ContentPublishingEventArgs |
ToContentSavedEventArgs()
Converts ContentSavingEventArgs to ContentSavedEventArgs while preserving all args state
Declaration
public ContentSavedEventArgs ToContentSavedEventArgs()
Returns
Type | Description |
---|---|
ContentSavedEventArgs |