MemberDescriptor.FindMethod Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
A megadott metódust visszatükrözéssel találja meg.
Túlterhelések
| Name | Description |
|---|---|
| FindMethod(Type, String, Type[], Type) |
A megadott metódust tükrözi, és csak nyilvános metódusokat keres. |
| FindMethod(Type, String, Type[], Type, Boolean) |
A megadott metódust tükröződés útján keresi meg, és csak nyilvános metódusokat kereshet. |
FindMethod(Type, String, Type[], Type)
- Forrás:
- MemberDescriptor.cs
- Forrás:
- MemberDescriptor.cs
- Forrás:
- MemberDescriptor.cs
- Forrás:
- MemberDescriptor.cs
- Forrás:
- MemberDescriptor.cs
A megadott metódust tükrözi, és csak nyilvános metódusokat keres.
protected:
static System::Reflection::MethodInfo ^ FindMethod(Type ^ componentClass, System::String ^ name, cli::array <Type ^> ^ args, Type ^ returnType);
protected static System.Reflection.MethodInfo? FindMethod(Type componentClass, string name, Type[] args, Type returnType);
protected static System.Reflection.MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType);
static member FindMethod : Type * string * Type[] * Type -> System.Reflection.MethodInfo
Protected Shared Function FindMethod (componentClass As Type, name As String, args As Type(), returnType As Type) As MethodInfo
Paraméterek
- componentClass
- Type
A metódust tartalmazó összetevő.
- name
- String
A megkeresendő metódus neve.
- args
- Type[]
A metódus paramétereinek tömbje, amely a túlterhelt metódusok közötti választásra szolgál.
- returnType
- Type
A metódushoz visszaadandó típus.
Válaszok
A MethodInfo metódust jelképező, vagy null ha a metódus nem található.
A következőre érvényes:
FindMethod(Type, String, Type[], Type, Boolean)
- Forrás:
- MemberDescriptor.cs
- Forrás:
- MemberDescriptor.cs
- Forrás:
- MemberDescriptor.cs
- Forrás:
- MemberDescriptor.cs
- Forrás:
- MemberDescriptor.cs
A megadott metódust tükröződés útján keresi meg, és csak nyilvános metódusokat kereshet.
protected:
static System::Reflection::MethodInfo ^ FindMethod(Type ^ componentClass, System::String ^ name, cli::array <Type ^> ^ args, Type ^ returnType, bool publicOnly);
protected static System.Reflection.MethodInfo? FindMethod(Type componentClass, string name, Type[] args, Type returnType, bool publicOnly);
protected static System.Reflection.MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType, bool publicOnly);
static member FindMethod : Type * string * Type[] * Type * bool -> System.Reflection.MethodInfo
Protected Shared Function FindMethod (componentClass As Type, name As String, args As Type(), returnType As Type, publicOnly As Boolean) As MethodInfo
Paraméterek
- componentClass
- Type
A metódust tartalmazó összetevő.
- name
- String
A megkeresendő metódus neve.
- args
- Type[]
A metódus paramétereinek tömbje, amely a túlterhelt metódusok közötti választásra szolgál.
- returnType
- Type
A metódushoz visszaadandó típus.
- publicOnly
- Boolean
A nyilvános metódusok keresésének korlátozása.
Válaszok
A MethodInfo metódust jelképező, vagy null ha a metódus nem található.