TypeBuilder.GetMethods(BindingFlags) Metoda

Definicja

Zwraca wszystkie metody publiczne i inne niż publiczne zadeklarowane lub dziedziczone przez ten typ zgodnie z określonymi.

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

Parametry

bindingAttr
BindingFlags

Musi to być nieco flaga z BindingFlags elementu , InvokeMethodNonPublici tak dalej.

Zwraca

Zwraca tablicę MethodInfo obiektów reprezentujących metody publiczne i inne niż publiczne zdefiniowane w tym typie, jeśli nonPublic jest używany; w przeciwnym razie zwracane są tylko metody publiczne.

Wyjątki

Ta metoda nie jest implementowana dla niekompletnych typów.

Uwagi

Pobierz typ przy użyciu metody Type.GetType lub Assembly.GetType i użyj odbicia dla pobranego typu.

Dotyczy