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

Class ContentTypeEventArgs

Class to pass event arguments from ContentType events.

Inheritance
System.Object
System.EventArgs
ContentTypeEventArgs
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.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public class ContentTypeEventArgs : EventArgs

Constructors

ContentTypeEventArgs(Int32, Guid, Boolean)

Declaration
public ContentTypeEventArgs(int contentTypeID, Guid contentTypeGUID, bool isBlockType)
Parameters
Type Name Description
System.Int32 contentTypeID
System.Guid contentTypeGUID
System.Boolean isBlockType

ContentTypeEventArgs(Int32, Guid, Boolean, Boolean)

Initializes a new instance of the ContentTypeEventArgs class.

Declaration
public ContentTypeEventArgs(int contentTypeID, Guid contentTypeGUID, bool isBlockType, bool isNewContentType)
Parameters
Type Name Description
System.Int32 contentTypeID

The ID of the ContentType affected by the event.

System.Guid contentTypeGUID

The GUID of the ContentType affected by the event.

System.Boolean isBlockType

If set to true indicates that the ContentType affected by the event is a BlockType

System.Boolean isNewContentType

If set to true indicates that the ContentType affected by the event is new.

Properties

ContentTypeGUID

Gets the GUID of the ContentType affected by the event.

Declaration
public Guid ContentTypeGUID { get; }
Property Value
Type Description
System.Guid

ContentTypeID

Gets the ID of the ContentType affected by the event.

Declaration
public int ContentTypeID { get; }
Property Value
Type Description
System.Int32

IsBlockType

Gets a value indicating whether the ContentType affected by the event is a BlockType.

Declaration
public bool IsBlockType { get; }
Property Value
Type Description
System.Boolean

true if the content type is a BlockType; otherwise, false.

IsNewContentType

Gets a value indicating whether the ContentType just been created.

Declaration
public bool IsNewContentType { get; }
Property Value
Type Description
System.Boolean

true if the content type is a new page type; otherwise, false.

Extension Methods