ModuleBuilder.GetMethodImpl Yöntem

Tanım

Belirtilen ölçütle eşleşen modül düzeyi yöntemini döndürür.

protected:
 override System::Reflection::MethodInfo ^ GetMethodImpl(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")]
protected override System.Reflection.MethodInfo? GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[]? types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.MethodInfo GetMethodImpl(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")>]
override this.GetMethodImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
override this.GetMethodImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Protected Overrides Function GetMethodImpl (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

Aramayı denetlemek için kullanılan bit bayraklarının birleşimi BindingFlags .

binder
Binder

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

callConvention
CallingConventions

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

types
Type[]

yönteminin 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

Modül düzeyinde tanımlanan ve belirtilen ölçütlere uyan bir yöntem; veya null böyle bir yöntem yoksa.

Öznitelikler

Özel durumlar

name is null, types is nullveya öğesinin types öğesidir null.

Açıklamalar

Bu yöntem, devralınan Module.GetMethod yöntemin tüm aşırı yüklemeleri için uygulamayı sağlar. Modül düzeyinde bildirilen yöntemleri almak için devralınan Module.GetMethod yöntemi kullanın. Modül düzeyi yöntemler, yöntemi kullanılarak yayılan kodda DefineGlobalMethod tanımlanır.

Important

Modül için yöntem çağrılana CreateGlobalFunctions kadar modül düzeyinde yöntemler alınamaz.

Şunlara uygulanır

Ayrıca bkz.