C# Класс System.Reflection.Assembly

Наследование: ICustomAttributeProvider
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Assembly
CreateInstance object
CreateQualifiedName string
GetAssembly Assembly
GetExecutingAssembly Assembly
GetType Type
GetTypes Type[]
GetVersion string
Load Assembly

Открытые методы

Метод Описание
GetCustomAttributes ( ) : object[]

Retrieves a collection of custom attributes that are applied to a specified assembly.

GetCustomAttributes ( Type attributeType ) : object[]

Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.

GetCustomAttributes ( Type attributeType, bool inherit ) : object[]

Gets the custom attributes for this assembly as specified by type.

GetCustomAttributes ( bool inherit ) : object[]

Gets all the custom attributes for this assembly.

GetManifestResourceData ( Type type, string name ) : byte[]
GetManifestResourceData ( string name ) : byte[]
GetManifestResourceDataAsBase64 ( Type type, string name ) : string
GetManifestResourceDataAsBase64 ( string name ) : string
GetManifestResourceNames ( ) : string[]

Returns the names of all the resources in this assembly.

Приватные методы

Метод Описание
Assembly ( )
CreateInstance ( string typeName ) : object
CreateQualifiedName ( string assemblyName, string typeName ) : string
GetAssembly ( Type type ) : Assembly
GetExecutingAssembly ( ) : Assembly
GetType ( string name ) : Type
GetTypes ( ) : Type[]
GetVersion ( ) : string
Load ( string assemblyString ) : Assembly

Описание методов

GetCustomAttributes() публичный Метод

Retrieves a collection of custom attributes that are applied to a specified assembly.
public GetCustomAttributes ( ) : object[]
Результат object[]

GetCustomAttributes() публичный Метод

Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.
public GetCustomAttributes ( Type attributeType ) : object[]
attributeType Type The type of attribute to search for.
Результат object[]

GetCustomAttributes() публичный Метод

Gets the custom attributes for this assembly as specified by type.
public GetCustomAttributes ( Type attributeType, bool inherit ) : object[]
attributeType Type The type for which the custom attributes are to be returned.
inherit bool This argument is ignored for objects of type Assembly.
Результат object[]

GetCustomAttributes() публичный Метод

Gets all the custom attributes for this assembly.
public GetCustomAttributes ( bool inherit ) : object[]
inherit bool This argument is ignored for objects of type Assembly.
Результат object[]

GetManifestResourceData() публичный Метод

public GetManifestResourceData ( Type type, string name ) : byte[]
type Type
name string
Результат byte[]

GetManifestResourceData() публичный Метод

public GetManifestResourceData ( string name ) : byte[]
name string
Результат byte[]

GetManifestResourceDataAsBase64() публичный Метод

public GetManifestResourceDataAsBase64 ( Type type, string name ) : string
type Type
name string
Результат string

GetManifestResourceDataAsBase64() публичный Метод

public GetManifestResourceDataAsBase64 ( string name ) : string
name string
Результат string

GetManifestResourceNames() публичный Метод

Returns the names of all the resources in this assembly.
public GetManifestResourceNames ( ) : string[]
Результат string[]