TypeDelegator.GetConstructors(BindingFlags) 方法

定义

返回 ConstructorInfo 对象的数组,这些对象表示为当前 TypeDelegator 包装的类型定义的构造函数。

public:
 override cli::array <System::Reflection::ConstructorInfo ^> ^ GetConstructors(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.ConstructorInfo[] GetConstructors (System.Reflection.BindingFlags bindingAttr);
[System.Runtime.InteropServices.ComVisible(true)]
public override System.Reflection.ConstructorInfo[] GetConstructors (System.Reflection.BindingFlags bindingAttr);
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
Public Overrides Function GetConstructors (bindingAttr As BindingFlags) As ConstructorInfo()

参数

bindingAttr
BindingFlags

影响执行搜索的方式的位掩码。 该值是零个或多个来自 BindingFlags 的位标志的组合。

返回

ConstructorInfo[]

ConstructorInfo 类型的数组,包含为此类定义的指定的构造函数。 如果未定义任何构造函数,则返回一个空数组。 根据指定参数的值,只返回公共构造函数或同时返回公共和非公共构造函数。

属性

注解

类初始值设定项只能通过 GetMemberGetMembersFindMembersGetConstructors

适用于