GetAssemblyRefProps Method

IMetaDataAssemblyImport::GetAssemblyRefProps Method


Gets the set of properties for the assembly reference with the specified metadata signature.

HRESULT GetAssemblyRefProps (
    [in]  mdAssemblyRef        mdar, 
    [out] const void          **ppbPublicKeyOrToken, 
    [out] ULONG                *pcbPublicKeyOrToken, 
    [out] LPWSTR               szName, 
    [in]  ULONG                cchName, 
    [out] ULONG                *pchName, 
    [out] ASSEMBLYMETADATA     *pMetaData, 
    [out] const void           **ppbHashValue, 
    [out] ULONG                *pcbHashValue, 
    [out] DWORD                *pdwAssemblyRefFlags


[in] The mdAssemblyRef metadata token that represents the assembly reference for which to get the properties.


[out] A pointer to the public key or the metadata token.


[out] The number of bytes in the returned public key or token.


[out] The simple name of the assembly.


[in] The size, in wide chars, of szName.


[out] A pointer to the number of wide chars actually returned in szName.


[out] A pointer to an ASSEMBLYMETADATA structure that contains the assembly metadata.


[out] 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] The number of wide chars in the returned hash value.


[out] A pointer to flags that describe the metadata applied to an assembly. The flags value is a combination of one or more CorAssemblyFlags values.

This method returns S_OK if it succeeds; otherwise, it returns one of the error codes defined in the Winerror.h header file.


Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: 4.6, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

© 2015 Microsoft