NSKeyedArchiver.ArchivedDataWithRootObject Method

Definition

Overloads

ArchivedDataWithRootObject(NSObject)
ArchivedDataWithRootObject(NSObject, Boolean, NSError)

ArchivedDataWithRootObject(NSObject)

[Foundation.Export("archivedDataWithRootObject:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'ArchivedDataWithRootObject (NSObject, bool, out NSError)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'ArchivedDataWithRootObject (NSObject, bool, out NSError)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'ArchivedDataWithRootObject (NSObject, bool, out NSError)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.None, "Use 'ArchivedDataWithRootObject (NSObject, bool, out NSError)' instead.")]
public static Foundation.NSData ArchivedDataWithRootObject (Foundation.NSObject root);
static member ArchivedDataWithRootObject : Foundation.NSObject -> Foundation.NSData

Parameters

root
NSObject

Returns

Attributes

Applies to

ArchivedDataWithRootObject(NSObject, Boolean, NSError)

[Foundation.Export("archivedDataWithRootObject:requiringSecureCoding:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSData ArchivedDataWithRootObject (Foundation.NSObject object, bool requiresSecureCoding, out Foundation.NSError error);
static member ArchivedDataWithRootObject : Foundation.NSObject * bool *  -> Foundation.NSData

Parameters

object
NSObject
requiresSecureCoding
Boolean
error
NSError

Returns

Attributes

Applies to