Partager via


IMetaDataImport::EnumInterfaceImpls Method

Enumerates MethodDef tokens representing interface implementations.

HRESULT EnumInterfaceImpls (
    HCORENUM        *phEnum, 
    mdTypeDef       td,
    mdInterfaceImpl rImpls[], 
    ULONG           cMax,
    ULONG*          pcImpls
);

Parameters

Parameter Description

phEnum

[in, out] A pointer to the enumerator.

td

[in] The token of the TypeDef whose MethodDef tokens representing interface implementations are to be enumerated.

rImpls

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

cMax

[in] The maximum size of the rImpls array.

pcImpls

[out] The actual number of tokens returned in rImpls.

Return Value

HRESULT Description

S_OK

EnumInterfaceImpls returned successfully.

S_FALSE

There are no MethodDef tokens to enumerate. In that case, pcImpls is set to zero.

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