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

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


[in] The size in bytes of pbPublicKey.


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


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


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


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


[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
© 2014 Microsoft. All rights reserved.