NSKeyedArchiver.ArchivedDataWithRootObject 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- root
- NSObject
返回
- 属性
适用于
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
参数
- object
- NSObject
- requiresSecureCoding
- Boolean
- error
- NSError
返回
- 属性