IMetaDataAssemblyImport::GetAssemblyRefProps method (rometadataapi.h)
Gets the set of properties for the assembly reference with the specified metadata signature.
Syntax
HRESULT GetAssemblyRefProps(
[in] mdAssemblyRef mdar,
[out] const BYTE **ppbPublicKeyOrToken,
[out] ULONG *pcbPublicKeyOrToken,
[out] LPWSTR szName,
[in] ULONG cchName,
[out] ULONG *pchName,
[out] ASSEMBLYMETADATA *pMetaData,
[out] const BYTE **ppbHashValue,
[out] ULONG *pcbHashValue,
[out] DWORD *pdwAssemblyRefFlags
);
Parameters
[in] mdar
The mdAssemblyRef metadata token that represents the assembly reference for which to get the properties.
[out] ppbPublicKeyOrToken
A pointer to the public key or the metadata token.
[out] pcbPublicKeyOrToken
The number of bytes in the returned public key or token.
[out] szName
The simple name of the assembly.
[in] cchName
The size, in wide chars, of szName.
[out] pchName
A pointer to the number of wide chars actually returned in szName.
[out] pMetaData
A pointer to an ASSEMBLYMETADATA structure that contains the assembly metadata.
[out] ppbHashValue
A pointer to the hash value. This is the hash, using the SHA-1 algorithm, of the PublicKey property of the assembly being referenced, unless the arfFullOriginator flag of the AssemblyRefFlags enumeration is set.
[out] pcbHashValue
The number of wide chars in the returned hash value.
[out] pdwAssemblyRefFlags
A pointer to flags that describe the metadata applied to an assembly. The flags value is a combination of one or more CorAssemblyFlags values.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | rometadataapi.h |