_Type.GetMethod 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod 제공합니다.
오버로드
| Name | Description |
|---|---|
| GetMethod(String, Type[]) |
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, Type[]) 제공합니다. |
| GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) |
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) 제공합니다. |
| GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) |
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) 제공합니다. |
| GetMethod(String) |
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String) 제공합니다. |
| GetMethod(String, BindingFlags) |
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, BindingFlags) 제공합니다. |
| GetMethod(String, Type[], ParameterModifier[]) |
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, Type[], ParameterModifier[]) 제공합니다. |
설명
이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.
Type.GetMethod 메서드입니다.
GetMethod(String, Type[])
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, Type[]) 제공합니다.
public:
System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, cli::array <Type ^> ^ types);
public System.Reflection.MethodInfo GetMethod(string name, Type[] types);
abstract member GetMethod : string * Type[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, types As Type()) As MethodInfo
매개 변수
- types
- Type[]
가져올 메서드에 Type 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체의 배열입니다.
-또는-
매개 변수를 사용하지 않는 메서드를 가져오는 형식 Type 의 빈 배열(즉, Type[] types = new Type[0])입니다.
반품
MethodInfo 매개 변수가 지정된 인수 형식과 일치하는 public 메서드를 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.
설명
이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.
메서드는 Type.GetMethod 매개 변수가 지정된 인수 형식과 일치하는 지정된 public 메서드를 검색합니다.
적용 대상
GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) 제공합니다.
public:
System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, 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, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As MethodInfo
매개 변수
- binder
- Binder
Binder 속성 집합을 정의하고 바인딩을 사용하도록 설정하는 개체로, 오버로드된 메서드 선택, 인수 형식 강제 변환 및 리플렉션을 통해 멤버 호출을 포함할 수 있습니다.
-또는-
null를 사용합니다 DefaultBinder.
- callConvention
- CallingConventions
CallingConventions 인수의 순서 및 레이아웃, 반환 값 전달 방법, 인수에 사용되는 레지스터 및 스택 정리 방법과 관련하여 사용할 규칙 집합을 지정하는 개체입니다.
- types
- Type[]
가져올 메서드에 Type 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체의 배열입니다.
-또는-
매개 변수를 사용하지 않는 메서드를 가져오는 형식 Type 의 빈 배열(즉, Type[] types = new Type[0])입니다.
- modifiers
- ParameterModifier[]
배열의 ParameterModifier 해당 요소와 연결된 특성을 나타내는 개체의 types 배열입니다. 기본 바인더는 이 매개 변수를 처리하지 않습니다.
반품
MethodInfo 지정된 요구 사항과 일치하는 메서드를 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.
설명
이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.
이 메서드는 Type.GetMethod 지정된 바인딩 제약 조건 및 지정된 호출 규칙을 사용하여 매개 변수가 지정된 인수 형식 및 한정자와 일치하는 지정된 메서드를 검색합니다.
적용 대상
GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) 제공합니다.
public:
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
Public Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, types As Type(), modifiers As ParameterModifier()) As MethodInfo
매개 변수
- binder
- Binder
Binder 속성 집합을 정의하고 바인딩을 사용하도록 설정하는 개체로, 오버로드된 메서드 선택, 인수 형식 강제 변환 및 리플렉션을 통해 멤버 호출을 포함할 수 있습니다.
-또는-
null를 사용합니다 DefaultBinder.
- types
- Type[]
가져올 메서드에 Type 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체의 배열입니다.
-또는-
매개 변수를 사용하지 않는 메서드를 가져오는 형식 Type 의 빈 배열(즉, Type[] types = new Type[0])입니다.
- modifiers
- ParameterModifier[]
배열의 ParameterModifier 해당 요소와 연결된 특성을 나타내는 개체의 types 배열입니다. 기본 바인더는 이 매개 변수를 처리하지 않습니다.
반품
MethodInfo 지정된 요구 사항과 일치하는 메서드를 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.
설명
이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.
이 메서드는 Type.GetMethod 지정된 바인딩 제약 조건을 사용하여 매개 변수가 지정된 인수 형식 및 한정자와 일치하는 지정된 메서드를 검색합니다.
적용 대상
GetMethod(String)
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String) 제공합니다.
public:
System::Reflection::MethodInfo ^ GetMethod(System::String ^ name);
public System.Reflection.MethodInfo GetMethod(string name);
abstract member GetMethod : string -> System.Reflection.MethodInfo
Public Function GetMethod (name As String) As MethodInfo
매개 변수
반품
MethodInfo 지정된 이름을 가진 public 메서드를 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.
설명
이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.
메서드는 Type.GetMethod 지정된 이름의 public 메서드를 검색합니다.
적용 대상
GetMethod(String, BindingFlags)
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, BindingFlags) 제공합니다.
public:
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
Public Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo
매개 변수
반품
MethodInfo 지정된 요구 사항과 일치하는 메서드를 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.
설명
이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.
메서드는 Type.GetMethod 지정된 바인딩 제약 조건을 사용하여 지정된 메서드를 검색합니다.
적용 대상
GetMethod(String, Type[], ParameterModifier[])
COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethod(String, Type[], ParameterModifier[]) 제공합니다.
public:
System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.MethodInfo GetMethod(string name, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetMethod : string * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, types As Type(), modifiers As ParameterModifier()) As MethodInfo
매개 변수
- types
- Type[]
가져올 메서드에 Type 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체의 배열입니다.
-또는-
매개 변수를 사용하지 않는 메서드를 가져오는 형식 Type 의 빈 배열(즉, Type[] types = new Type[0])입니다.
- modifiers
- ParameterModifier[]
배열의 ParameterModifier 해당 요소와 연결된 특성을 나타내는 개체의 types 배열입니다. 기본 바인더는 이 매개 변수를 처리하지 않습니다.
반품
MethodInfo 지정된 요구 사항과 일치하는 public 메서드를 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.
설명
이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.
메서드는 Type.GetMethod 매개 변수가 지정된 인수 형식 및 한정자와 일치하는 지정된 public 메서드를 검색합니다.