IMetaDataAssemblyEmit::SetAssemblyRefProps Method
Modifies the specified AssemblyRef metadata structure.
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 Structure 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 Enumeration values that specify attributes of the referenced assembly.
Remarks
To create an AssemblyRef metadata structure, use the IMetaDataAssemblyEmit::DefineAssemblyRef Method 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