Rediger

Del via


EnumBuilder.GetConstructors(BindingFlags) Method

Definition

Returns an array of ConstructorInfo objects representing the public and non-public constructors defined for this class, as specified.

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()

Parameters

bindingAttr
BindingFlags

This must be a bit flag from BindingFlags : InvokeMethod, NonPublic, and so on.

Returns

Returns an array of ConstructorInfo objects representing the specified constructors defined for this class. If no constructors are defined, an empty array is returned.

Attributes

Exceptions

This method is not currently supported in types that are not complete.

Remarks

As a workaround, to retrieve the constructor of a finished type, you can retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.

Applies to