Partager via


IMetaDataImport::EnumSignatures Method

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

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

Parameters

Parameter Description

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

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface