ModuleBuilder.GetMethodToken 메서드

정의

이 모듈 내에서 지정된 메서드를 식별하는 데 사용되는 토큰을 반환합니다.

오버로드

Name Description
GetMethodToken(MethodInfo)

이 모듈 내에서 지정된 메서드를 식별하는 데 사용되는 토큰을 반환합니다.

GetMethodToken(MethodInfo, IEnumerable<Type>)

이 모듈 내에서 지정된 특성 및 매개 변수 형식이 있는 메서드를 식별하는 데 사용되는 토큰을 반환합니다.

GetMethodToken(MethodInfo)

이 모듈 내에서 지정된 메서드를 식별하는 데 사용되는 토큰을 반환합니다.

public:
 System::Reflection::Emit::MethodToken GetMethodToken(System::Reflection::MethodInfo ^ method);
public System.Reflection.Emit.MethodToken GetMethodToken(System.Reflection.MethodInfo method);
member this.GetMethodToken : System.Reflection.MethodInfo -> System.Reflection.Emit.MethodToken
Public Function GetMethodToken (method As MethodInfo) As MethodToken

매개 변수

method
MethodInfo

토큰을 가져올 메서드입니다.

반품

이 모듈 내에서 지정된 메서드를 식별하는 데 사용되는 토큰입니다.

예외

methodnull입니다.

메서드의 선언 형식이 이 모듈에 없습니다.

적용 대상

GetMethodToken(MethodInfo, IEnumerable<Type>)

이 모듈 내에서 지정된 특성 및 매개 변수 형식이 있는 메서드를 식별하는 데 사용되는 토큰을 반환합니다.

public:
 System::Reflection::Emit::MethodToken GetMethodToken(System::Reflection::MethodInfo ^ method, System::Collections::Generic::IEnumerable<Type ^> ^ optionalParameterTypes);
public System.Reflection.Emit.MethodToken GetMethodToken(System.Reflection.MethodInfo method, System.Collections.Generic.IEnumerable<Type> optionalParameterTypes);
member this.GetMethodToken : System.Reflection.MethodInfo * seq<Type> -> System.Reflection.Emit.MethodToken
Public Function GetMethodToken (method As MethodInfo, optionalParameterTypes As IEnumerable(Of Type)) As MethodToken

매개 변수

method
MethodInfo

토큰을 가져올 메서드입니다.

optionalParameterTypes
IEnumerable<Type>

메서드에 대한 선택적 매개 변수 형식의 컬렉션입니다.

반품

이 모듈 내에서 지정된 메서드를 식별하는 데 사용되는 토큰입니다.

예외

methodnull입니다.

메서드의 선언 형식이 이 모듈에 없습니다.

적용 대상