TypeDelegator.GetMethodImpl 方法

定義

使用指定的繫結條件約束和指定的呼叫慣例,來搜尋指定的方法,而該方法的參數符合指定的引數類型和修飾詞。

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);
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);
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

參數

name
String

方法名稱。

bindingAttr
BindingFlags

位元遮罩,會影響搜尋的進行方式。 這個值是零或來自 BindingFlags 多個位元旗標的組合。

binder
Binder

使用反映來啟用繫結、強制引數的類型、成員的引動過程,和擷取 MemberInfo 物件的物件。 如果 bindernull,則會使用預設繫結器。

callConvention
CallingConventions

呼叫慣例。

types
Type[]

Type 型別的陣列包含參數數目、順序和型別的清單。 型別不能是 null,請使用適當的 GetMethod 方法或空白陣列以搜尋沒有參數的方法。

modifiers
ParameterModifier[]

ParameterModifier 型別的陣列擁有長度與 types 陣列相同,其元素表示與要取得方法之參數相關的屬性。 

傳回

實作方法的 MethodInfoInfo 物件 (符合指定的準則),或為 null (如果找不到符合的)。

備註

參數 callConvention 會指出進入點的呼叫慣例。 CallingConventions如果未指定 ,則會使用 的 Standard 預設值 CallingConventions

適用於

另請參閱