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
指示入口点的调用约定。 如果未指定调用约定,则使用默认值 CallingConventionsStandard
。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈