Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataAssemblyImport::GetAssemblyProps method

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

Syntax


HRESULT GetAssemblyProps(
  [in]                                               mdAssembly       mda,
  [out, size_is(, *pcbPublicKey)]              const BYTE             **ppbPublicKey,
  [out]                                              ULONG            *pcbPublicKey,
  [out]                                              ULONG            *pulHashAlgId,
  [out, size_is(cchName), length_is(*pchName)]       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.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataAssemblyImport

 

 

Show:
© 2017 Microsoft