November Happy Hour will be moved to Thursday December 5th.

Class MoveContentEventArgs

Event arguments passed from IContentRepository for content move related events.

Inheritance
System.Object
System.EventArgs
MoveContentEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class MoveContentEventArgs : ContentEventArgs

Constructors

MoveContentEventArgs(ContentReference, ContentReference)

Initializes a new instance of the MoveContentEventArgs class.

Declaration
public MoveContentEventArgs(ContentReference contentLink, ContentReference destinationLink)
Parameters
Type Name Description
ContentReference contentLink

The page link.

ContentReference destinationLink

The destination link.

Properties

Descendents

Gets or sets a list of references to any descendents that will also be affected by the move operation.

Declaration
public IEnumerable<ContentReference> Descendents { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ContentReference>

Gets the original (before move) reference for the Content that is being moved.

Declaration
public ContentReference OriginalContentLink { get; }
Property Value
Type Description
ContentReference

The previous content reference.

In most cases is OriginalContentLink and ContentLink equal. The exception is when a content item is moved between content providers. Then in MovedContent will OriginalContentLink be the reference to the content it had before the move operation while ContentLink will be the new reference after the move operation.

OriginalParent

Gets or sets the original (before move) parent for ContentLink

Declaration
public ContentReference OriginalParent { get; set; }
Property Value
Type Description
ContentReference

The previous parent.

Extension Methods