TypeDelegator.GetConstructorImpl(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) 方法

定义

获取实现 TypeDelegator 的构造函数。Gets the constructor that implemented the 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);
override this.GetConstructorImpl : System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.ConstructorInfo

参数

bindingAttr
BindingFlags

影响执行搜索的方式的位掩码。A bitmask that affects the way in which the search is conducted. 该值是零个或多个来自 BindingFlags 的位标志的组合。The value is a combination of zero or more bit flags from BindingFlags.

binder
Binder

一个对象,它使用反射启用绑定、参数类型的强制、成员的调用和 MemberInfo 对象的检索。An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects using reflection. 如果 bindernull,则使用默认联编程序。If binder is null, the default binder is used.

callConvention
CallingConventions

调用约定。The calling conventions.

types
Type[]

Type 类型的数组,包含参数数量、顺序和类型的列表。An array of type Type containing a list of the parameter number, order, and types. 类型不能为 null;使用相应的 GetMethod 方法或空数组搜索不带参数的方法。Types cannot be null; use an appropriate GetMethod method or an empty array to search for a method without parameters.

modifiers
ParameterModifier[]

ParameterModifier 类型的数组,它与 types 数组的长度相同,后者的元素表示与要获取的方法的参数关联的属性。An array of type ParameterModifier having the same length as the types array, whose elements represent the attributes associated with the parameters of the method to get.

返回

此方法的匹配指定判据的 ConstructorInfo 对象;如果无法找到匹配项,则为 nullA ConstructorInfo object for the method that matches the specified criteria, or null if a match cannot be found.

注解

callConvention 参数指示入口点的调用约定。The callConvention parameter indicates the calling convention for the entry point. 如果未指定调用约定,则使用 Standard 的默认 CallingConventions 值。If no calling convention is specified, a default CallingConventions value of Standard is used.

适用于

另请参阅