Share via


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
);

Parameters

  • 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.

Return Value

HRESULT

Description

S_OK

EnumSignatures returned successfully.

S_FALSE

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

Remarks

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

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

IMetaDataImport Interface

IMetaDataImport2 Interface