Class.GetDeclaredConstructors Method

Definition

Returns an array of Constructor objects reflecting all the constructors declared by the class represented by this Class object.

[Android.Runtime.Register("getDeclaredConstructors", "()[Ljava/lang/reflect/Constructor;", "")]
public Java.Lang.Reflect.Constructor[] GetDeclaredConstructors ();
[<Android.Runtime.Register("getDeclaredConstructors", "()[Ljava/lang/reflect/Constructor;", "")>]
member this.GetDeclaredConstructors : unit -> Java.Lang.Reflect.Constructor[]

Returns

the array of Constructor objects representing all the declared constructors of this class

Attributes

Remarks

Returns an array of Constructor objects reflecting all the constructors declared by the class represented by this Class object. These are public, protected, default (package) access, and private constructors. The elements in the array returned are not sorted and are not in any particular order. If the class has a default constructor, it is included in the returned array. This method returns an array of length 0 if this Class object represents an interface, a primitive type, an array class, or void.

See <em>The Java Language Specification</em>, section 8.2.

Added in 1.1.

Java documentation for java.lang.Class.getDeclaredConstructors().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also