다음을 통해 공유


IMetaDataImport2::EnumMethodSpecs Method

지정된 MethodDef 또는 MemberRef 토큰과 연결된 MethodSpec 토큰 배열에 대한 열거자를 가져옵니다.

Syntax

HRESULT EnumMethodSpecs (
    [in, out] HCORENUM      *phEnum,
    [in]      mdToken       tk,
    [out]     mdMethodSpec  rMethodSpecs[],
    [in]      ULONG         cMax,
    [out]     ULONG         *pcMethodSpecs
);

Parameters

phEnum [in, out] 에 대한 열거자에 대한 rMethodSpecs포인터입니다.

tk [in] MethodSpec 토큰을 열거할 메서드를 나타내는 MemberRef 또는 MethodDef 토큰입니다. 값이 0이면 범위의 tk 모든 MethodSpec 토큰이 열거됩니다.

rMethodSpecs [out] 열거할 MethodSpec 토큰의 배열입니다.

cMax [in] 에 배치할 요청된 최대 토큰 수입니다 rMethodSpecs.

pcMethodSpecs [out] 에 배치된 토큰의 반환된 수입니다 rMethodSpecs.

Return Value

HRESULT Description
S_OK EnumMethodSpecs 가 성공적으로 반환되었습니다.
S_FALSE phEnum 멤버 요소가 없습니다. 이 경우 pcMethodSpecs 0으로 설정됩니다.

Requirements

플랫폼:.NET 지원 운영 체제를 참조하세요.

Header: Cor.h

Library: CorGuids.lib

.NET 버전: .NET Framework 2.0 이후 사용 가능

See also