IMetaDataImport::GetScopeProps method (rometadataapi.h)

Gets the name and optionally the version identifier of the assembly or module in the current metadata scope.

Syntax

HRESULT GetScopeProps(
  [out] LPWSTR szName,
  [in]  ULONG  cchName,
  [out] ULONG  *pchName,
  [out] GUID   *pmvid
);

Parameters

[out] szName

A buffer for the assembly or module name.

[in] cchName

The size in wide characters of szName.

[out] pchName

The number of wide characters returned in szName.

[out] pmvid

A pointer to a GUID that uniquely identifies the version of the assembly or module.

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

See also

IMetaDataImport