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

Class ContentTypeEventArgs

Class to pass event arguments from ContentType events.

Inheritance
System.Object
ContentTypeEventArgs
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3
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.

ContentTypeEventArgs(Int32, Guid, Boolean, Boolean, String, Nullable<DateTime>, String)

Initializes a new instance of the ContentTypeEventArgs class.

Declaration
public ContentTypeEventArgs(int contentTypeID, Guid contentTypeGUID, bool isBlockType, bool isNewContentType, string name, Nullable<DateTime> saved, string savedBy)
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.

System.String name

The name of the ContentType.

System.Nullable<System.DateTime> saved

The time the ContentType was saved.

System.String savedBy

The user saved the ContentType.

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.

Name

Gets the Name of the ContentType.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Saved

Gets the time when the ContentType was saved.

Declaration
public Nullable<DateTime> Saved { get; }
Property Value
Type Description
System.Nullable<System.DateTime>

SavedBy

Gets the user that saved the ContentType.

Declaration
public string SavedBy { get; }
Property Value
Type Description
System.String

Extension Methods