NSKeyedUnarchiver.GetUnarchivedObject 方法

定义

重载

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

参数

classes
NSSet<Class>
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

返回

属性

适用于