TypeGetConstructors Method (BindingFlags) |
When overridden in a derived class, searches for the constructors defined for the current
Type, using the specified BindingFlags.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public abstract ConstructorInfo[] GetConstructors(
BindingFlags bindingAttr
)
Parameters
- bindingAttr
- Type: System.ReflectionBindingFlags
A bitmask comprised of one or more BindingFlags that specify how the search is conducted.-or- Zero, to return null.
Return Value
Type:
ConstructorInfoAn array of
ConstructorInfo objects representing all constructors defined for the current
Type that match the specified binding constraints, including the type initializer if it is defined. Returns an empty array of type
ConstructorInfo if no constructors are defined for the current
Type, if none of the defined constructors match the binding constraints, or if the current
Type represents a type parameter in the definition of a generic type or generic method.
See Also