TypeDelegator.GetConstructorImpl 方法

获取实现 TypeDelegator 的构造函数。

**命名空间:**System.Reflection
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Protected Overrides Function GetConstructorImpl ( _
    bindingAttr As BindingFlags, _
    binder As Binder, _
    callConvention As CallingConventions, _
    types As Type(), _
    modifiers As ParameterModifier() _
) As ConstructorInfo
用法
Dim bindingAttr As BindingFlags
Dim binder As Binder
Dim callConvention As CallingConventions
Dim types As Type()
Dim modifiers As ParameterModifier()
Dim returnValue As ConstructorInfo

returnValue = Me.GetConstructorImpl(bindingAttr, binder, callConvention, types, modifiers)
protected override ConstructorInfo GetConstructorImpl (
    BindingFlags bindingAttr,
    Binder binder,
    CallingConventions callConvention,
    Type[] types,
    ParameterModifier[] modifiers
)
protected:
virtual ConstructorInfo^ GetConstructorImpl (
    BindingFlags bindingAttr, 
    Binder^ binder, 
    CallingConventions callConvention, 
    array<Type^>^ types, 
    array<ParameterModifier>^ modifiers
) override
protected ConstructorInfo GetConstructorImpl (
    BindingFlags bindingAttr, 
    Binder binder, 
    CallingConventions callConvention, 
    Type[] types, 
    ParameterModifier[] modifiers
)
protected override function GetConstructorImpl (
    bindingAttr : BindingFlags, 
    binder : Binder, 
    callConvention : CallingConventions, 
    types : Type[], 
    modifiers : ParameterModifier[]
) : ConstructorInfo

参数

  • bindingAttr
    影响执行搜索的方式的位屏蔽。该值是零个或多个来自 BindingFlags 的位标志的组合。
  • binder
    一个对象,它使用反射启用绑定、参数类型的强制、成员的调用和 MemberInfo 对象的检索。如果 binder 为 空引用(在 Visual Basic 中为 Nothing),则使用默认联编程序。
  • callConvention
    调用约定。
  • types
    Type 类型的数组,包含参数数量、顺序和类型的列表。类型不能为 空引用(在 Visual Basic 中为 Nothing);使用相应的 GetMethod 方法或空数组搜索不带参数的方法。
  • modifiers
    ParameterModifier 类型的数组,它与 types 数组的长度相同,后者的元素表示与要获取的方法的参数关联的属性。

返回值

此方法的匹配指定判据的 ConstructorInfo 对象;如果无法找到匹配项,则为 空引用(在 Visual Basic 中为 Nothing)。

备注

callConvention 参数指示该入口点的调用约定。如果未指定调用约定,则使用 Standard 的默认 CallingConventions 值。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

TypeDelegator 类
TypeDelegator 成员
System.Reflection 命名空间
CallingConventions 枚举
BindingFlags 枚举
Binder 类