Class AssemblyTypeInfo
Contains description of the plugin-related types that exists in an assembly.
Inheritance
Inherited Members
Namespace: EPiServer.PlugIn
Assembly: EPiServer.dll
Version: 9.12.2Syntax
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 |