Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IMetaDataAssemblyEmit::DefineAssembly Method

Creates an Assembly structure containing metadata for the specified assembly and returns the associated metadata token.

HRESULT DefineAssembly (
    [in]  void                 *pbPublicKey,
    [in]  ULONG                cbPublicKey,
    [in]  ULONG                uHashAlgId,
    [in]  LPCWSTR              szName, 
    [in]  ASSEMBLYMETADATA     *pMetaData,
    [in]  DWORD                dwAssemblyFlags,
    [out] mdAssembly           *pmda
);
pbPublicKey

[in] The public key that identifies the publisher of the assembly, or NULL if the assembly is not strongly named.

cbPublicKey

[in] The size in bytes of pbPublicKey.

uHashAlgId

[in] The identifier of the hashing algorithm to use to encrypt the files in the assembly, or NULL to specify the SHA-1 algorithm.

szName

[in] The human-readable text name of the assembly. This value must not exceed 1024 characters.

pMetaData

[in] A pointer to an ASSEMBLYMETADATA instance that contains the version, platform, and locale information for the assembly.

dwAssemblyFlags

[in] A combination of CorAssemblyFlags values that describe features of the assembly.

pmda

[out] A pointer to the metadata token.

Only one Assembly metadata structure can be defined within a manifest.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.