MonobjcMonobjc Documented Class Library
SetMetadataForPersistentStoreOfTypeURLError Method (metadata, storeType, url, error)
NamespacesMonobjc.CoreDataNSPersistentStoreCoordinatorSetMetadataForPersistentStoreOfTypeURLError(NSDictionary, NSString, NSURL, NSError%)

Sets the metadata for a given store.

Original signature is '+ (BOOL)setMetadata:(NSDictionary *)metadata forPersistentStoreOfType:(NSString *)storeType URL:(NSURL *)url error:(NSError **)error'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static bool SetMetadataForPersistentStoreOfTypeURLError(
	NSDictionary metadata,
	NSString storeType,
	NSURL url,
	out NSError error
)
Public Shared Function SetMetadataForPersistentStoreOfTypeURLError ( _
	metadata As NSDictionary, _
	storeType As NSString, _
	url As NSURL, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
static bool SetMetadataForPersistentStoreOfTypeURLError(
	NSDictionary^ metadata, 
	NSString^ storeType, 
	NSURL^ url, 
	[OutAttribute] NSError^% error
)
Parameters
metadata (NSDictionary)
A dictionary containing metadata for the store.
storeType (NSString)
The type of the store at url. If this value is nil, Core Data will determine which store class should be used to get or set the store file's metadata by inspecting the file contents.
url (NSURL)
The location of a persistent store.
error (NSError%)
If no store is found at url or if there is a problem setting its metadata, upon return contains an NSError object that describes the problem.
Return Value
YES if the metadata was set correctly, otherwise NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)