ModuleBuilder.GetMethodToken 메서드

정의

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

오버로드

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

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

반환

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

예외

method이(가) null인 경우

메서드의 선언 형식이 이 모듈에 없는 경우

적용 대상

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>

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

반환

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

예외

method이(가) null인 경우

메서드의 선언 형식이 이 모듈에 없는 경우

적용 대상