IMetaDataImport::EnumSignatures Method

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

Syntax

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: See System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

See also