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

Class PageTypeEventArgs

Class to pass event arguments from PageType events.

Inheritance
System.Object
System.EventArgs
PageTypeEventArgs
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: 10.10.4
Syntax
[Obsolete("Replaced by ContentTypeEventArgs")]
public sealed class PageTypeEventArgs : EventArgs

Constructors

PageTypeEventArgs(Int32, Guid)

Initializes a new instance of the PageTypeEventArgs class.

Declaration
public PageTypeEventArgs(int pageTypeID, Guid pageTypeGUID)
Parameters
Type Name Description
System.Int32 pageTypeID

The ID of the PageType affected by the event.

System.Guid pageTypeGUID

The GUID of the PageType affected by the event.

PageTypeEventArgs(Int32, Guid, Boolean)

Initializes a new instance of the PageTypeEventArgs class.

Declaration
public PageTypeEventArgs(int pageTypeID, Guid pageTypeGUID, bool isNewPageType)
Parameters
Type Name Description
System.Int32 pageTypeID

The ID of the PageType affected by the event.

System.Guid pageTypeGUID

The GUID of the PageType affected by the event.

System.Boolean isNewPageType

If set to true indicates that the page type is a new page type.

Properties

IsNewPageType

Gets a value indicating whether the PageType just been created.

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

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

PageTypeGUID

Gets the GUID of the PageType affected by the event.

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

PageTypeID

Gets the ID of the PageType affected by the event.

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

Extension Methods