Object.Clone Method

Definition

Creates and returns a copy of this object.

[Android.Runtime.Register("clone", "()Ljava/lang/Object;", "GetCloneHandler")]
protected virtual Java.Lang.Object Clone ();
[<Android.Runtime.Register("clone", "()Ljava/lang/Object;", "GetCloneHandler")>]
abstract member Clone : unit -> Java.Lang.Object
override this.Clone : unit -> Java.Lang.Object

Returns

Object

a clone of this instance.

Attributes

Exceptions

if this object's class does not implement the Cloneable interface.

Remarks

Java documentation for java.lang.Object.clone().

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