Android Guides | Samples

Java.Lang.Reflect.Constructor Class

This class represents a constructor.

See Also: Constructor

Syntax

[Android.Runtime.Register("java/lang/reflect/Constructor", DoNotGenerateAcw=true)]
public sealed class Constructor : AccessibleObject, IGenericDeclaration, IMember, IDisposable

Remarks

This class represents a constructor. Information about the constructor can be accessed, and the constructor can be invoked dynamically.

[Android Documentation]

Requirements

Namespace: Java.Lang.Reflect
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.Reflect.Constructor are listed below.

See Also: AccessibleObject

Public Properties

[read-only]
DeclaringClassClass. Returns the class that declares this constructor.
[read-only]
IsSyntheticBoolean. Returns true if this constructor is synthetic (artificially introduced by the compiler).
[read-only]
IsVarArgsBoolean. Returns true if this constructor takes a variable number of arguments.
[read-only]
ModifiersInt32. Returns the modifiers for this constructor.
[read-only]
NameString. Returns the name of this constructor.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetExceptionTypes() : Class[]
Returns the exception types as an array of Class instances.
GetGenericExceptionTypes() : IType[]
Returns the exception types as an array of Type instances.
GetGenericParameterTypes() : IType[]
Returns the generic parameter types as an array of Type instances, in declaration order.
GetParameterAnnotations() : IAnnotation[][]
Returns an array of arrays that represent the annotations of the formal parameters of this constructor.
GetParameterTypes() : Class[]
Returns an array of the Class objects associated with the parameter types of this constructor.
GetTypeParameters() : ITypeVariable[]
Returns the declared type parameters in declaration order.
NewInstance(params Object[]) : Object
ToGenericString() : String
Returns the string representation of the constructor's declaration, including the type parameters.