ScriptObject.GetMethod 메서드

정의

지정된 이름을 가진 메서드를 가져옵니다.

오버로드

GetMethod(String, BindingFlags)

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

지정된 이름을 가진 메서드를 가져옵니다.

GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

지정된 선택 조건을 사용하여 지정된 이름을 가진 메서드를 가져옵니다.

GetMethod(String, BindingFlags)

지정된 이름을 가진 메서드를 가져옵니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
 virtual System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MethodInfo GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
override this.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo

매개 변수

name
String

가져올 메서드의 이름입니다.

bindingAttr
BindingFlags

리플렉션을 통해 멤버를 검색하는 방법을 지정하는 열거형 값의 비트 조합입니다.

반환

지정된 name을 가진 메서드이거나 스크립트 개체에 이 메서드가 없는 경우 null입니다.

구현

추가 정보

적용 대상

GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

지정된 선택 조건을 사용하여 지정된 이름을 가진 메서드를 가져옵니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
 virtual System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.MethodInfo GetMethod (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
override this.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, types As Type(), modifiers As ParameterModifier()) As MethodInfo

매개 변수

name
String

검색할 메서드의 이름입니다.

bindingAttr
BindingFlags

리플렉션을 통해 멤버를 검색하는 방법을 지정하는 열거형 값의 비트 조합입니다.

binder
Binder

실제 인수 형식에서 정식 인수 형식으로의 형식 변환을 수행하는 개체입니다.

types
Type[]

일치하는 메서드를 찾는 데 사용할 매개 변수 형식입니다.

modifiers
ParameterModifier[]

형식이 수정된 매개 변수 시그니처로 작업하기 위해 바인딩을 사용하는 매개 변수 한정자의 배열입니다.

반환

지정된 name을 가진 메서드이거나 스크립트 개체에 이 메서드가 없는 경우 null입니다.

구현

추가 정보

적용 대상