Partilhar via


IMetaDataAssemblyImport::GetAssemblyProps Method

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

HRESULT GetAssemblyProps (
    [in]  mdAssembly          mda,
    [out] const void          **ppbPublicKey, 
    [out] ULONG               *pcbPublicKey,
    [out] ULONG               *pulHashAlgId,
    [out] LPWSTR              szName,
    [in] ULONG                cchName,
    [out] ULONG               *pchName,
    [out] ASSEMBLYMETADATA    *pMetaData,
    [out] DWORD               *pdwAssemblyFlags
);

Parameters

  • mda
    [in]. The mdAssembly metadata token that represents the assembly for which to get the properties.

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

  • pcbPublicKey
    [out] The number of bytes in the returned public key.

  • pulHashAlgId
    [out] A pointer to the algorithm used to hash the files in the assembly.

  • szName
    [out] The simple name of the assembly.

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

  • pchName
    [out] The number of wide chars actually returned in szName.

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

  • pdwAssemblyFlags
    [out] Flags that describe the metadata applied to an assembly. This value is a combination of one or more CorAssemblyFlags values.

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

IMetaDataAssemblyImport Interface