NSPersistentStoreCoordinator.SetMetadata 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetMetadata(NSDictionary, NSPersistentStore) |
设置永久性存储的元数据。 |
SetMetadata(NSDictionary, NSString, NSUrl, NSError) |
设置 URL 处的永久性存储的元数据。 |
SetMetadata(NSDictionary<NSString,NSObject>, String, NSUrl, NSDictionary, NSError) |
在 URL 上设置永久性存储的元数据。 |
SetMetadata(NSDictionary, NSPersistentStore)
设置永久性存储的元数据。
[Foundation.Export("setMetadata:forPersistentStore:")]
public virtual void SetMetadata (Foundation.NSDictionary metadata, CoreData.NSPersistentStore store);
abstract member SetMetadata : Foundation.NSDictionary * CoreData.NSPersistentStore -> unit
override this.SetMetadata : Foundation.NSDictionary * CoreData.NSPersistentStore -> unit
参数
- store
- NSPersistentStore
- 属性
适用于
SetMetadata(NSDictionary, NSString, NSUrl, NSError)
设置 URL 处的永久性存储的元数据。
[Foundation.Export("setMetadata:forPersistentStoreOfType:URL:error:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use the method that takes an 'out NSError' parameter.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.None, "Use the method that takes an 'out NSError' parameter.")]
public static bool SetMetadata (Foundation.NSDictionary metadata, Foundation.NSString storeType, Foundation.NSUrl url, out Foundation.NSError error);
[Foundation.Export("setMetadata:forPersistentStoreOfType:URL:error:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Use the method that takes an out NSError parameter.")]
public static bool SetMetadata (Foundation.NSDictionary metadata, Foundation.NSString storeType, Foundation.NSUrl url, out Foundation.NSError error);
static member SetMetadata : Foundation.NSDictionary * Foundation.NSString * Foundation.NSUrl * -> bool
参数
- metadata
- NSDictionary
- storeType
- NSString
- url
- NSUrl
- error
- NSError
返回
- 属性
适用于
SetMetadata(NSDictionary<NSString,NSObject>, String, NSUrl, NSDictionary, NSError)
在 URL 上设置永久性存储的元数据。
[Foundation.Export("setMetadata:forPersistentStoreOfType:URL:options:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool SetMetadata (Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> metadata, string storeType, Foundation.NSUrl url, Foundation.NSDictionary options, out Foundation.NSError error);
static member SetMetadata : Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> * string * Foundation.NSUrl * Foundation.NSDictionary * -> bool
参数
- storeType
- String
- url
- NSUrl
- error
- NSError
返回
- 属性