TypeDelegator.GetConstructorImpl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得實作 TypeDelegator
的建構函式。
protected:
override System::Reflection::ConstructorInfo ^ GetConstructorImpl(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.ConstructorInfo? GetConstructorImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.ConstructorInfo GetConstructorImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
override this.GetConstructorImpl : System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.ConstructorInfo
Protected Overrides Function GetConstructorImpl (bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As ConstructorInfo
參數
- bindingAttr
- BindingFlags
位元遮罩,會影響搜尋的進行方式。 這個值是零或來自 BindingFlags 多個位元旗標的組合。
- binder
- Binder
使用反映來啟用繫結、強制引數的類型、成員的引動過程,和擷取 MemberInfo
物件的物件。 如果 binder
為 null
,則會使用預設繫結器。
- callConvention
- CallingConventions
呼叫慣例。
- types
- Type[]
Type
型別的陣列包含參數數目、順序和型別的清單。 型別不能是 null
,請使用適當的 GetMethod
方法或空白陣列以搜尋沒有參數的方法。
- modifiers
- ParameterModifier[]
ParameterModifier
型別的陣列擁有長度與 types
陣列相同,其元素表示與要取得方法之參數相關的屬性。
傳回
方法的 ConstructorInfo
物件 (符合指定的準則),或為 null
(如果找不到符合的)。
備註
參數 callConvention
會指出進入點的呼叫慣例。 如果未指定任何呼叫慣例,則會使用的Standard
預設值CallingConventions。