TypeDelegator.GetMethodImpl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的系結條件約束和指定的呼叫慣例,搜尋指定的方法,其參數符合指定的自變數類型和修飾詞。
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.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)]
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);
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.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)>]
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
參數
- name
- String
方法名稱。
- bindingAttr
- BindingFlags
一個影響搜尋方式的位元遮罩。 該值是由零個或多個位元旗標組成的 BindingFlags。
- binder
- Binder
物件,可讓您使用反映來系結、強制自變數類型、叫用成員,以及擷取 MemberInfo 物件。 若 binder , null則使用預設的綁定器。
- callConvention
- CallingConventions
召喚慣例。
- types
- Type[]
一個型別 Type 的陣列,包含參數號、順序和型別的清單。 型別無法 ; null請使用適當的 GetMethod 方法或空陣列來搜尋無參數的方法。
- modifiers
- ParameterModifier[]
一個與陣列長度ParameterModifier相同的型態types陣列,其元素代表與要取得方法參數相關的屬性。
傳回
一個 MethodInfoInfo 符合指定條件的實作方法物件,或 null 在找不到匹配時。
- 屬性
備註
參數 callConvention 表示進入點的呼叫慣例。 若指定 noCallingConventions,則使用預設CallingConventions值 。Standard