Module.GetMethodImpl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
依照指定標準回傳方法實作。
protected:
virtual 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 virtual System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member 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 Overridable 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
一個實作 Binder的物件,包含與此方法相關的屬性。
- callConvention
- CallingConventions
方法的呼叫慣例。
- types
- Type[]
要搜尋的參數類型。
- modifiers
- ParameterModifier[]
一組參數修飾器陣列,用來使綁定能與參數簽名相符,其中類型已被修改。
傳回
包含 MethodInfo 指定實作資訊的物件,或 null 若該方法不存在。
例外狀況
types 是 null。