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

Class PagePlugInAttribute

The attribute class used to identify page extensions.

Inheritance
System.Object
System.Attribute
PagePlugInAttribute
Implements
System.Runtime.InteropServices._Attribute
Inherited Members
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.Equals(System.Object)
System.Attribute.GetHashCode()
System.Attribute.Match(System.Object)
System.Attribute.IsDefaultAttribute()
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Attribute.TypeId
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.PlugIn
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public sealed class PagePlugInAttribute : PlugInAttribute, _Attribute
Remarks

Page extensions are plug-ins that are automatically instantiated and used for all ASP.NET pages that derive (directly or indirectly) from the PageBase class. All EPiServers system pages derive from PageBase and this is a way to hook in custom code to basically any user / editor / admin page and add new functionality.

Constructors

PagePlugInAttribute()

Initializes a new instance of the PagePlugInAttribute class.

Declaration
public PagePlugInAttribute()

PagePlugInAttribute(String, String)

Initializes a new instance of the PagePlugInAttribute class.

Declaration
public PagePlugInAttribute(string name, string description)
Parameters
Type Name Description
System.String name

The name of the page extension.

System.String description

The description for the page extension.

Remarks

Initializes the DisplayName and Description properties as part of the initialization process. Unless you manually set the LanguagePath property you will not benefit from the automatic translation support in EPiServer.

PagePlugInAttribute(String, String, String)

Initializes a new instance of the PagePlugInAttribute class.

Declaration
public PagePlugInAttribute(string name, string description, string languagePath)
Parameters
Type Name Description
System.String name

The name of the page extension.

System.String description

The description for the page extension.

System.String languagePath

The language path to use when trying to look up translations for the DisplayName and Description properties.

Methods

GetOptionFlag()

Gets the option flag.

Declaration
public static int GetOptionFlag()
Returns
Type Description
System.Int32

An System.Int32 with the next available bit for Page Extension use.

Remarks

Note that this is used as a bitmap to determine which page extensions to enable. This effectively limits the number of installed page extensions to 32.

Start()

Initialization method called by the plug-in system.

Declaration
public static void Start()
Remarks

This method is called to set up all page extensions by invoking the static Initialize method on the class that the PagePlugInAttribute is applied to.

Implements

System.Runtime.InteropServices._Attribute

Extension Methods