Share via


IMetaDataAssemblyEmit::SetAssemblyProps Method

Modifies the specified Assembly metadata structure.

HRESULT SetAssemblyProps (
    [in] mdAssembly               pma,
    [in] const void               *pbPublicKey,
    [in] ULONG                    cbPublicKey,
    [in] ULONG                    ulHashAlgId,
    [in] LPCWSTR                  szName,
    [in] const ASSEMBLYMETADATA   *pMetaData,
    [in] DWORD                    dwAssemblyFlags
);

Parameters

  • pma
    [in] The metadata token that specifies the Assembly metadata structure to be modified.

  • pbPublicKey
    [in] A pointer to the public key of the publisher of the assembly.

  • cbPublicKey
    [in] The size in bytes of pbPublicKey.

  • ulHashAlgId
    [in] The identifier for the hash algorithm used to hash the assembly files.

  • szName
    [in] The human-readable text name of the assembly.

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

  • dwAssemblyFlags
    [in] A bitwise combination of AssemblyFlags values that specify various attributes of the assembly.

Remarks

To create an Assembly metadata structure, use the IMetaDataAssemblyEmit::DefineAssembly method.

Requirements

Platform: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

IMetaDataAssemblyEmit Interface