Freigeben über


NSPersistentStoreCoordinator.SetMetadata Methode

Definition

Überlädt

SetMetadata(NSDictionary, NSPersistentStore)

Legt die Metadaten für einen persistenten Speicher fest.

SetMetadata(NSDictionary, NSString, NSUrl, NSError)

Legt die Metadaten für einen persistenten Speicher an einer URL fest.

SetMetadata(NSDictionary<NSString,NSObject>, String, NSUrl, NSDictionary, NSError)

Legt die Metadaten für einen persistenten Speicher auf eine URL fest.

SetMetadata(NSDictionary, NSPersistentStore)

Legt die Metadaten für einen persistenten Speicher fest.

[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

Parameter

metadata
NSDictionary

Muss hinzugefügt werden.

Dieser Parameter kann null sein.

Attribute

Gilt für:

SetMetadata(NSDictionary, NSString, NSUrl, NSError)

Legt die Metadaten für einen persistenten Speicher an einer URL fest.

[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

Parameter

metadata
NSDictionary
storeType
NSString
url
NSUrl
error
NSError

Gibt zurück

Attribute

Gilt für:

SetMetadata(NSDictionary<NSString,NSObject>, String, NSUrl, NSDictionary, NSError)

Legt die Metadaten für einen persistenten Speicher auf eine URL fest.

[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

Parameter

metadata
NSDictionary<NSString,NSObject>

Muss hinzugefügt werden.

Dieser Parameter kann null sein.

storeType
String
url
NSUrl
options
NSDictionary

Muss hinzugefügt werden.

Dieser Parameter kann null sein.

error
NSError

Gibt zurück

Attribute

Gilt für: