IMetaDataImport::EnumSignatures Method

 

Enumerates Signature tokens representing stand-alone signatures in the current scope.

HRESULT EnumSignatures (
   [in, out] HCORENUM     *phEnum,
   [out]     mdSignature  rSignatures[],
   [in]      ULONG        cMax,
   [out]     ULONG        *pcSignatures
);

phEnum

[in, out] A pointer to the enumerator. This must be NULL for the first call of this method.

rSignatures

[out] The array used to store the Signature tokens.

cMax

[in] The maximum size of the rSignatures array.

pcSignatures

[out] The number of Signature tokens returned in rSignatures.

HRESULT

Description

S_OK

EnumSignatures returned successfully.

S_FALSE

There are no tokens to enumerate. In that case, pcSignatures is zero.

The Signature tokens are created by the IMetaDataEmit::GetTokenFromSig method.

Requirements

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

Show: