Partager via


NSKeyedArchiver.ArchivedDataWithRootObject Méthode

Définition

Surcharges

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

Paramètres

root
NSObject

Retours

Attributs

S’applique à

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

Paramètres

object
NSObject
requiresSecureCoding
Boolean
error
NSError

Retours

Attributs

S’applique à