_Type.GetMethods 메서드

정의

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethods 제공합니다.

오버로드

Name Description
GetMethods()

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethods() 제공합니다.

GetMethods(BindingFlags)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethods(BindingFlags) 제공합니다.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 Type.GetMethods 현재 Type메서드를 가져옵니다.

GetMethods()

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethods() 제공합니다.

public:
 cli::array <System::Reflection::MethodInfo ^> ^ GetMethods();
public System.Reflection.MethodInfo[] GetMethods();
abstract member GetMethods : unit -> System.Reflection.MethodInfo[]
Public Function GetMethods () As MethodInfo()

반품

현재MethodInfoType 대해 정의된 모든 public 메서드를 나타내는 개체의 배열입니다.

-또는-

현재MethodInfo에 대해 정의된 public 메서드가 없는 경우 형식Type의 빈 배열입니다.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

이 메서드는 Type.GetMethods 현재 Type메서드의 모든 public 메서드를 반환합니다.

적용 대상

GetMethods(BindingFlags)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetMethods(BindingFlags) 제공합니다.

public:
 cli::array <System::Reflection::MethodInfo ^> ^ GetMethods(System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MethodInfo[] GetMethods(System.Reflection.BindingFlags bindingAttr);
abstract member GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
Public Function GetMethods (bindingAttr As BindingFlags) As MethodInfo()

매개 변수

bindingAttr
BindingFlags

검색을 수행하는 방법을 지정하는 하나 이상의 BindingFlags 비트 마스크로 구성됩니다.

-또는-

0을 반환 null합니다.

반품

지정된 바인딩 제약 조건과 일치하는 현재 MethodInfo 에 대해 정의된 모든 메서드를 나타내는 개체의 배열 Type 입니다.

-또는-

현재 MethodInfo메서드에 대해 정의된 메서드가 없거나 정의된 메서드가 바인딩 제약 조건과 일치하지 않는 경우 형식Type의 빈 배열입니다.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 Type.GetMethods 지정된 바인딩 제약 조건을 사용하여 현재 Type에 대해 정의된 메서드를 검색합니다.

적용 대상