INSCopying.Copy(NSZone) Method

Definition

Performs a copy of the underlying Objective-C object.

[Foundation.Export("copyWithZone:")]
[Foundation.Preserve(Conditional=true)]
public Foundation.NSObject Copy (Foundation.NSZone zone);
abstract member Copy : Foundation.NSZone -> Foundation.NSObject

Parameters

zone
NSZone

Developers should pass null. Memory zones are no longer used.

Returns

The newly-allocated object.

Attributes

Remarks

This method performs a "shallow copy" of this. If this object contains references to external objects, the new object will contain references to the same object.

Applies to