Interface IContentEvents
Defines the events raised when working with content using the IContent
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public interface IContentEvents
Events
CheckedInContent
Occurs when a version of a content item has been checked in.
Declaration
event EventHandler<ContentEventArgs> CheckedInContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saved
CheckedOutContent
Occurs when a version of a content item has been checked out.
Declaration
event EventHandler<ContentEventArgs> CheckedOutContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
CheckingInContent
Occurs when a version of a content item is about to be checked in.
Declaration
event EventHandler<ContentEventArgs> CheckingInContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
CheckingOutContent
Occurs when a version of a content item is about to be checked out.
Declaration
event EventHandler<ContentEventArgs> CheckingOutContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
CreatedContent
Occurs when a new content item has been saved to the repository.
Declaration
event EventHandler<ContentEventArgs> CreatedContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised before the Saved
CreatedContentLanguage
Occurs when a new language branch of a content item has been created.
Declaration
event EventHandler<ContentEventArgs> CreatedContentLanguage
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised before the Saved
CreatingContent
Occurs when a new content item is about to be saved to the repository.
Declaration
event EventHandler<ContentEventArgs> CreatingContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised before the Saving
CreatingContentLanguage
Occurs when a new language branch of a content item is about to be created.
Declaration
event EventHandler<ContentEventArgs> CreatingContentLanguage
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised before the Saving
DeletedContent
Occurs when a content item has been deleted from the wastebasket.
Declaration
event EventHandler<DeleteContentEventArgs> DeletedContent
Event Type
Type | Description |
---|---|
System. |
Remarks
Note that this event is not raised when a content item is moved to the wastebasket.
At that point only the Moved
DeletedContentLanguage
Occurs when a language branch of a content item has been deleted.
Declaration
event EventHandler<ContentEventArgs> DeletedContentLanguage
Event Type
Type | Description |
---|---|
System. |
DeletedContentVersion
Occurs when a content item version has been deleted.
Declaration
event EventHandler<ContentEventArgs> DeletedContentVersion
Event Type
Type | Description |
---|---|
System. |
DeletingContent
Occurs when a content item is about to be deleted permanently.
Declaration
event EventHandler<DeleteContentEventArgs> DeletingContent
Event Type
Type | Description |
---|---|
System. |
Remarks
Note that this event is not raised when a content item is about to be moved to the wastebasket.
At that point only the Moving
DeletingContentLanguage
Occurs when a language branch of a content item is about to be deleted.
Declaration
event EventHandler<ContentEventArgs> DeletingContentLanguage
Event Type
Type | Description |
---|---|
System. |
DeletingContentVersion
Occurs when a content item version is about to be deleted permanently.
Declaration
event EventHandler<ContentEventArgs> DeletingContentVersion
Event Type
Type | Description |
---|---|
System. |
FailedLoadingChildren
Occurs when a content list failed for some reason. Occurs when an exception was raised while a content list was loaded using the GetChildren method.
Declaration
event ChildrenEventHandler FailedLoadingChildren
Event Type
Type | Description |
---|---|
Children |
Remarks
This event is raised if a LoadingChildrem is NOT followed by a LoadedChildren, i e FailedLoadingChildren is called instead of LoadedChildren. This is typically used if you need to clean up something that was initiated by LoadingChildren.
FailedLoadingContent
Occurs when an exception was raised while a content item was loaded from the repository.
Declaration
event EventHandler<ContentEventArgs> FailedLoadingContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event is raised if a LoadingContent is NOT followed by a LoadedContent, i e FailedLoadingContent is called instead of LoadedContent. This is typically used if you need to clean up something that was initiated by LoadingContent.
LoadedChildren
Occurs when a list of child content has been loaded using the GetChildren method.
Declaration
event ChildrenEventHandler LoadedChildren
Event Type
Type | Description |
---|---|
Children |
LoadedContent
Occurs when a content item has been loaded from the repository.
Declaration
event EventHandler<ContentEventArgs> LoadedContent
Event Type
Type | Description |
---|---|
System. |
LoadedDefaultContent
Occurs when a new content item has been created and initalized through the GetDefaultContent method.
Declaration
event EventHandler<ContentEventArgs> LoadedDefaultContent
Event Type
Type | Description |
---|---|
System. |
LoadingChildren
Occurs when a list of child content are about to be loaded using the GetChildren method.
Declaration
event ChildrenEventHandler LoadingChildren
Event Type
Type | Description |
---|---|
Children |
LoadingContent
Occurs when a content item are about to be loaded from the repository.
Declaration
event EventHandler<ContentEventArgs> LoadingContent
Event Type
Type | Description |
---|---|
System. |
LoadingDefaultContent
Occurs when a new content item is about to be created and initalized through the GetDefaultContent method.
Declaration
event EventHandler<ContentEventArgs> LoadingDefaultContent
Event Type
Type | Description |
---|---|
System. |
MovedContent
Occurs when a content item has been moved from one location to another.
Declaration
event EventHandler<ContentEventArgs> MovedContent
Event Type
Type | Description |
---|---|
System. |
Remarks
Note that this event is also raised when a content item is moved to the wastebasket.
MovingContent
Occurs when a content item is about to be moved from one location to another.
Declaration
event EventHandler<ContentEventArgs> MovingContent
Event Type
Type | Description |
---|---|
System. |
Remarks
Note that this event is also raised when a content item is about to be moved to the wastebasket.
PublishedContent
Occurs when a content item or a version of a content item has been published.
Declaration
event EventHandler<ContentEventArgs> PublishedContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saved
PublishingContent
Occurs when a content item or a version of a content item is requested to be published.
Declaration
event EventHandler<ContentEventArgs> PublishingContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
RejectedContent
Occurs when a version of a content item has been rejected.
Declaration
event EventHandler<ContentEventArgs> RejectedContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
RejectingContent
Occurs when a version of a content item is about to be rejected.
Declaration
event EventHandler<ContentEventArgs> RejectingContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
RequestedApproval
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.
Occurs when a version of a content item has been transitioned to Awaiting
Declaration
event EventHandler<ContentEventArgs> RequestedApproval
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
RequestingApproval
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.
Occurs when a version of a content item is about to be put in Awaiting
Declaration
event EventHandler<ContentEventArgs> RequestingApproval
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
SavedContent
Occurs when an existing content item has been saved to the repository.
Declaration
event EventHandler<ContentEventArgs> SavedContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised in along with a status specific event such as Published
SavingContent
Occurs when an existing content item is about to be saved to the repository.
Declaration
event EventHandler<ContentEventArgs> SavingContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised in along with a status specific event such as Publishing
ScheduledContent
Occurs when a version of a content item has been scheduled to be published.
Declaration
event EventHandler<ContentEventArgs> ScheduledContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving
SchedulingContent
Occurs when a version of a content item is about to be scheduled to be published.
Declaration
event EventHandler<ContentEventArgs> SchedulingContent
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be raised after the Saving