INSCopying.Copy(NSZone) 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 NSZone

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

Returns

The newly-allocated object.

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