NSKeyedArchiver.ArchivedDataWithRootObject Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
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
Возвращаемое значение
- Атрибуты