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

Class AssemblyTypeInfo

Contains description of the plugin-related types that exists in an assembly.

Inheritance
System.Object
AssemblyTypeInfo
Inherited Members
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.PlugIn
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class AssemblyTypeInfo

Constructors

AssemblyTypeInfo(Assembly)

Initializes a new instance of the AssemblyTypeInfo class.

Declaration
public AssemblyTypeInfo(Assembly assembly)
Parameters
Type Name Description
System.Reflection.Assembly assembly

The assembly to check for plug-in types.

AssemblyTypeInfo(AssemblyName)

Create an AssemblyTypeInfo for the referenced assembly

Declaration
public AssemblyTypeInfo(AssemblyName name)
Parameters
Type Name Description
System.Reflection.AssemblyName name

The AssemblyName of the assembly to check for plug-in types.

Properties

AssemblyName

Get the AssemblyName for the assembly described by this instance

Declaration
public AssemblyName AssemblyName { get; }
Property Value
Type Description
System.Reflection.AssemblyName

HasPlugInAttributes

True if this assembly has any attributes derived from the PlugInAttribute

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

HasPlugIns

True if this assembly has any types decorated with a [PlugIn] attribute

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

Methods

ListPlugInAttributes()

Get the attribute types for all types inheriting from PlugInAttribute

Declaration
public ICollection ListPlugInAttributes()
Returns
Type Description
System.Collections.ICollection

An ICollection with Type objects

ListPlugInDescriptors(PlugInAttribute)

Get descriptions for all plugins in this assembly that mateches the indicated attribute

Declaration
public ICollection ListPlugInDescriptors(PlugInAttribute matchAttribute)
Parameters
Type Name Description
PlugInAttribute matchAttribute

The attribute to compare with

Returns
Type Description
System.Collections.ICollection

An ICollection with PlugInDescriptor objects

ListPlugInTypes()

Get the types for all types decorated with a plugin attribute

Declaration
public ICollection ListPlugInTypes()
Returns
Type Description
System.Collections.ICollection

An ICollection with Type objects

Extension Methods