Interface IContentEvents
Defines the events exposed by Content repository.
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public interface IContentEventsEvents
CheckedInContent
Occurs when a version of a content item has been checked in.
Declaration
event EventHandler<ContentEventArgs> CheckedInContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after one of the CreatedContent or SavedContent events.
CheckingInContent
Occurs when a version of a content item is about to be checked in.
Declaration
event EventHandler<ContentEventArgs> CheckingInContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after one of the CreatingContent or SavingContent events.
CreatedContent
Occurs when a new content item has been saved to the repository.
Declaration
event EventHandler<ContentEventArgs> CreatedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised along with the PublishedContent or the CheckedInContent if the content item should be published or checked in while created.
CreatingContent
Occurs when a new content item is about to be saved to the repository.
Declaration
event EventHandler<ContentEventArgs> CreatingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised along with the PublishingContent or the CheckingInContent if the content item should be published or checked in while created.
DeletedContent
Occurs when a content item has been deleted from the wastebasket.
Declaration
event EventHandler<DeleteContentEventArgs> DeletedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<DeleteContentEventArgs> | 
Remarks
Note that this event is not raised when a content item is moved to the wastebasket. At that point only the MovedContent event is raised.
DeletedContentLanguage
Occurs when a language branch of a content item has been deleted.
Declaration
event EventHandler<ContentEventArgs> DeletedContentLanguageEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
DeletedContentVersion
Occurs when a content item version has been deleted.
Declaration
event EventHandler<ContentEventArgs> DeletedContentVersionEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
DeletingContent
Occurs when a content item is about to be deleted permanently.
Declaration
event EventHandler<DeleteContentEventArgs> DeletingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<DeleteContentEventArgs> | 
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 MovingContent event is raised.
DeletingContentLanguage
Occurs when a language branch of a content item is about to be deleted.
Declaration
event EventHandler<ContentEventArgs> DeletingContentLanguageEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
DeletingContentVersion
Occurs when a content item version is about to be deleted permanently.
Declaration
event EventHandler<ContentEventArgs> DeletingContentVersionEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
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 FailedLoadingChildrenEvent Type
| Type | Description | 
|---|---|
| ChildrenEventHandler | 
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> FailedLoadingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
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 LoadedChildrenEvent Type
| Type | Description | 
|---|---|
| ChildrenEventHandler | 
LoadedContent
Occurs when a content item has been loaded from the repository.
Declaration
event EventHandler<ContentEventArgs> LoadedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
LoadedDefaultContent
Occurs when a new content item has been created and initalized through the GetDefaultContent method.
Declaration
event EventHandler<ContentEventArgs> LoadedDefaultContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
LoadingChildren
Occurs when a list of child content are about to be loaded using the GetChildren method.
Declaration
event ChildrenEventHandler LoadingChildrenEvent Type
| Type | Description | 
|---|---|
| ChildrenEventHandler | 
LoadingContent
Occurs when a content item are about to be loaded from the repository.
Declaration
event EventHandler<ContentEventArgs> LoadingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
LoadingDefaultContent
Occurs when a new content item is about to be created and initalized through the GetDefaultContent method.
Declaration
event EventHandler<ContentEventArgs> LoadingDefaultContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
MovedContent
Occurs when a content item has been moved from one location to another.
Declaration
event EventHandler<ContentEventArgs> MovedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
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> MovingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
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> PublishedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after one of the CreatedContent or SavedContent events.
PublishingContent
Occurs when a content item or a version of a content item is requested to be published.
Declaration
event EventHandler<ContentEventArgs> PublishingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after one of the CreatingContent or SavingContent events.
SavedContent
Occurs when an existing content item has been saved to the repository.
Declaration
event EventHandler<ContentEventArgs> SavedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised along with the PublishedContent or the CheckedInContent if the content item should be published or checked in while saved.
SavingContent
Occurs when an existing content item is about to be saved to the repository.
Declaration
event EventHandler<ContentEventArgs> SavingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised along with the PublishingContent or the CheckingInContent if the content item should be published or checked in while saved.
