Module.GetMethod Yöntem

Tanım

Belirtilen ölçütlere sahip bir yöntem döndürür.

Aşırı Yüklemeler

Name Description
GetMethod(String)

Belirtilen ada sahip bir yöntem döndürür.

GetMethod(String, Type[])

Belirtilen ada ve parametre türlerine sahip bir yöntem döndürür.

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

Belirtilen ada, bağlama bilgilerine, çağırma kuralına ve parametre türlerine ve değiştiricilere sahip bir yöntem döndürür.

GetMethod(String)

Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs

Belirtilen ada sahip bir yöntem döndürür.

public:
 System::Reflection::MethodInfo ^ GetMethod(System::String ^ name);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Methods might be removed")]
public System.Reflection.MethodInfo? GetMethod(string name);
public System.Reflection.MethodInfo GetMethod(string name);
public System.Reflection.MethodInfo? GetMethod(string name);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Methods might be removed")>]
member this.GetMethod : string -> System.Reflection.MethodInfo
member this.GetMethod : string -> System.Reflection.MethodInfo
Public Function GetMethod (name As String) As MethodInfo

Parametreler

name
String

Yöntem adı.

Döndürülenler

MethodInfo Belirtilen ada sahip bir nesne veya null yöntem yoksa.

Öznitelikler

Özel durumlar

name, null'e eşittir.

Şunlara uygulanır

GetMethod(String, Type[])

Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs

Belirtilen ada ve parametre türlerine sahip bir yöntem döndürür.

public:
 System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, cli::array <Type ^> ^ types);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Methods might be removed")]
public System.Reflection.MethodInfo? GetMethod(string name, Type[] types);
public System.Reflection.MethodInfo GetMethod(string name, Type[] types);
public System.Reflection.MethodInfo? GetMethod(string name, Type[] types);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Methods might be removed")>]
member this.GetMethod : string * Type[] -> System.Reflection.MethodInfo
member this.GetMethod : string * Type[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, types As Type()) As MethodInfo

Parametreler

name
String

Yöntem adı.

types
Type[]

Aranacak parametre türleri.

Döndürülenler

MethodInfo Belirtilen ölçütlere uygun bir nesne veya null yöntem yoksa.

Öznitelikler

Özel durumlar

name, nulltypes veya nulltypes (i) şeklindedirnull.

Şunlara uygulanır

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

Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs
Kaynak:
Module.cs

Belirtilen ada, bağlama bilgilerine, çağırma kuralına ve parametre türlerine ve değiştiricilere sahip bir yöntem döndürür.

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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Methods might be removed")]
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);
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);
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);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Methods might be removed")>]
member this.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
member this.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

Parametreler

name
String

Yöntem adı.

bindingAttr
BindingFlags

BindingFlags Aramayı denetlemek için kullanılan bit bayraklarından biri.

binder
Binder

Bu yöntemle ilgili özellikleri içeren öğesini uygulayan Binderbir nesne.

callConvention
CallingConventions

yöntemi için çağırma kuralı.

types
Type[]

Aranacak parametre türleri.

modifiers
ParameterModifier[]

Bağlamanın, türlerin değiştirildiği parametre imzalarıyla çalışmasını sağlamak için kullanılan parametre değiştiricileri dizisi.

Döndürülenler

MethodInfo Belirtilen ölçütlere uygun bir nesne veya null yöntem yoksa.

Öznitelikler

Özel durumlar

name, nulltypes veya nulltypes (i) şeklindedirnull.

Ayrıca bkz.

Şunlara uygulanır