C# Класс PERWAPI.Assembly

Descriptor for an assembly (.assembly)
Наследование: DefiningScope
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddAssemblyAttr ( AssemAttr aa ) : void

Add an attribute for this assembly

AddAssemblyInfo ( int majVer, int minVer, int bldNo, int revNo, byte key, HashAlgorithmType hash, string cult ) : void

Add details about an assembly

AddSecurity ( SecurityAction act, byte permissionSet ) : void

Add some security action(s) to this Assembly

AssemblyAttributes ( ) : AssemAttr

Get the attributes of this assembly

BuildNumber ( ) : int

Get the build number for this Assembly

Culture ( ) : string

Get the culture information for this Assembly

GetSecurity ( ) : PERWAPI.DeclSecurity[]

Get the security information for this assembly

HasSecurity ( ) : bool

Check if this assembly has security information

HashAlgorithm ( ) : HashAlgorithmType

Get the type of the hash algorithm for this Assembly

Key ( ) : byte[]

Get the public key for this Assembly

MajorVersion ( ) : int

Get the major version number for this Assembly

MakeRefOf ( ) : AssemblyRef

Make an AssemblyRef descriptor for this Assembly

MinorVersion ( ) : int

Get the minor version number for this Assembly

RevisionNumber ( ) : int

Get the revision number for this Assembly

SetAssemblyAttr ( AssemAttr aa ) : void

Set the attributes for this assembly

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

Метод Описание
AddSecurity ( DeclSecurity sec ) : void
Assembly ( string name, HashAlgorithmType hashAlgId, ushort majVer, ushort minVer, ushort bldNo, ushort revNo, uint flags, byte pKey, string cult, PEFile pefile ) : System
Assembly ( string name, PEFile pefile ) : System
BuildTables ( MetaDataOut md ) : void
GetCodedIx ( CIx code ) : uint
Read ( PEReader buff, TableRow table, PEFile pefile ) : void
ReadAssemblyRef ( PEReader buff ) : AssemblyRef
Size ( MetaData md ) : uint
Write ( CILWriter output ) : void
Write ( PEWriter output ) : void

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

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

Add an attribute for this assembly
public AddAssemblyAttr ( AssemAttr aa ) : void
aa AssemAttr assembly attribute
Результат void

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

Add details about an assembly
public AddAssemblyInfo ( int majVer, int minVer, int bldNo, int revNo, byte key, HashAlgorithmType hash, string cult ) : void
majVer int Major Version
minVer int Minor Version
bldNo int Build Number
revNo int Revision Number
key byte Hash Key
hash HashAlgorithmType Hash Algorithm
cult string Culture
Результат void

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

Add some security action(s) to this Assembly
public AddSecurity ( SecurityAction act, byte permissionSet ) : void
act SecurityAction
permissionSet byte
Результат void

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

Get the attributes of this assembly
public AssemblyAttributes ( ) : AssemAttr
Результат AssemAttr

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

Get the build number for this Assembly
public BuildNumber ( ) : int
Результат int

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

Get the culture information for this Assembly
public Culture ( ) : string
Результат string

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

Get the security information for this assembly
public GetSecurity ( ) : PERWAPI.DeclSecurity[]
Результат PERWAPI.DeclSecurity[]

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

Check if this assembly has security information
public HasSecurity ( ) : bool
Результат bool

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

Get the type of the hash algorithm for this Assembly
public HashAlgorithm ( ) : HashAlgorithmType
Результат HashAlgorithmType

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

Get the public key for this Assembly
public Key ( ) : byte[]
Результат byte[]

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

Get the major version number for this Assembly
public MajorVersion ( ) : int
Результат int

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

Make an AssemblyRef descriptor for this Assembly
public MakeRefOf ( ) : AssemblyRef
Результат AssemblyRef

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

Get the minor version number for this Assembly
public MinorVersion ( ) : int
Результат int

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

Get the revision number for this Assembly
public RevisionNumber ( ) : int
Результат int

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

Set the attributes for this assembly
public SetAssemblyAttr ( AssemAttr aa ) : void
aa AssemAttr assembly attribute
Результат void