Class ContentTypeEventArgs
Class to pass event arguments from ContentType events.
Inheritance
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
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 |
System.Boolean | isNewContentType | If set to |
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 |
System.Boolean | isNewContentType | If set to |
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 |
|
IsNewContentType
Gets a value indicating whether the ContentType just been created.
Declaration
public bool IsNewContentType { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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 |