Class.NewInstance Class.NewInstance Method

Definition

Returns a new instance of the class represented by this Class, created by invoking the default (that is, zero-argument) constructor.

[Android.Runtime.Register("newInstance", "()Ljava/lang/Object;", "")]
public Java.Lang.Object NewInstance ();
member this.NewInstance : unit -> Java.Lang.Object

Returns

Exceptions

if the default constructor is not visible.

if the instance cannot be created.

Remarks

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