Compartir a través de


NSKeyedArchiver.ArchivedDataWithRootObject Método

Definición

Sobrecargas

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

Parámetros

root
NSObject

Devoluciones

Atributos

Se aplica a

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

Parámetros

object
NSObject
requiresSecureCoding
Boolean
error
NSError

Devoluciones

Atributos

Se aplica a