INSCopying.Copy(NSZone) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.