Share via


IMetaDataImport::GetTypeSpecFromToken Method

Gets the binary metadata signature of the type specification represented by the specified token.

HRESULT GetTypeSpecFromToken ( 
   [in]  mdTypeSpec            typespec, 
   [out] PCCOR_SIGNATURE       *ppvSig, 
   [out] ULONG                 *pcbSig
);

Parameters

  • typespec
    [in] The TypeSpec token associated with the requested metadata signature.

  • ppvSig
    [out] A pointer to the binary metadata signature.

  • pcbSig
    [out] The size, in bytes, of the metadata signature.

Return Value

An HRESULT that indicates success or failure. Failures can be tested with the FAILED macro.

Requirements

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface

IMetaDataImport2 Interface