NSKeyedUnarchiver.GetUnarchivedObject 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetUnarchivedObject(NSSet<Class>, NSData, NSError) | |
GetUnarchivedObject(Class, NSData, NSError) | |
GetUnarchivedObject(Type, NSData, NSError) | |
GetUnarchivedObject(Type[], NSData, NSError) |
GetUnarchivedObject(NSSet<Class>, NSData, NSError)
[Foundation.Export("unarchivedObjectOfClasses:fromData: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.NSObject GetUnarchivedObject (Foundation.NSSet<ObjCRuntime.Class> classes, Foundation.NSData data, out Foundation.NSError error);
static member GetUnarchivedObject : Foundation.NSSet<ObjCRuntime.Class> * Foundation.NSData * -> Foundation.NSObject
参数
- data
- NSData
- error
- NSError
返回
- 属性
适用于
GetUnarchivedObject(Class, NSData, NSError)
[Foundation.Export("unarchivedObjectOfClass:fromData: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.NSObject GetUnarchivedObject (ObjCRuntime.Class cls, Foundation.NSData data, out Foundation.NSError error);
static member GetUnarchivedObject : ObjCRuntime.Class * Foundation.NSData * -> Foundation.NSObject
参数
- cls
- Class
- data
- NSData
- error
- NSError
返回
- 属性
适用于
GetUnarchivedObject(Type, NSData, NSError)
[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.NSObject GetUnarchivedObject (Type type, Foundation.NSData data, out Foundation.NSError error);
static member GetUnarchivedObject : Type * Foundation.NSData * -> Foundation.NSObject
参数
- type
- Type
- data
- NSData
- error
- NSError
返回
- 属性
适用于
GetUnarchivedObject(Type[], NSData, NSError)
[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.NSObject GetUnarchivedObject (Type[] types, Foundation.NSData data, out Foundation.NSError error);
static member GetUnarchivedObject : Type[] * Foundation.NSData * -> Foundation.NSObject
参数
- types
- Type[]
- data
- NSData
- error
- NSError
返回
- 属性