IMetaDataAssemblyEmit::SetAssemblyRefProps Method

Modifies the specified AssemblyRef metadata structure.

Syntax

HRESULT SetAssemblyRefProps (  
    [in] mdAssemblyRef              ar,  
    [in] const void                 *pbPublicKeyOrToken,  
    [in] ULONG                      cbPublicKeyOrToken,  
    [in] LPCWSTR                    szName,
    [in] const ASSEMBLYMETADATA     *pMetaData,
    [in] const void                 *pbHashValue,  
    [in] ULONG                      cbHashValue,  
    [in] DWORD                      dwAssemblyRefFlags  
);  

Parameters

ar
[in] The metadata token that specifies the AssemblyRef metadata structure to be modified.

pbPublicKeyOrToken
[in] The public key of the publisher of the referenced assembly.

cbPublicKeyOrToken
[in] The size in bytes of pbPublicKeyOrToken.

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

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

pbHashValue
[in] A pointer to the hash data associated with the assembly.

cbHashValue
[in] The size in bytes of pbHashValue.

dwAssemblyRefFlags
[in] A bitwise combination of AssemblyRefFlags values that specify attributes of the referenced assembly.

Remarks

To create an AssemblyRef metadata structure, use the IMetaDataAssemblyEmit::DefineAssemblyRef method.

Requirements

Platforms: See System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

See also