Düzenle

Aracılığıyla paylaş


NSCoder.EncodeRoot(NSObject) Method

Definition

When overridden, allows a graph of objects to be encoded, starting with the specified root obj.

[Foundation.Export("encodeRootObject:")]
public virtual void EncodeRoot (Foundation.NSObject obj);
abstract member EncodeRoot : Foundation.NSObject -> unit
override this.EncodeRoot : Foundation.NSObject -> unit

Parameters

obj
NSObject

The object to encode

This parameter can be null.

Attributes

Remarks

Allows subclasses to provide a custom mechanism to encode an object graph. The NSCoder implementation merely calls Encode on the object.

Applies to