MonobjcMonobjc Documented Class Library
AddPersistentStoreWithTypeConfigurationURLOptionsError Method (storeType, configuration, storeURL, options, error)
NamespacesMonobjc.CoreDataNSPersistentStoreCoordinatorAddPersistentStoreWithTypeConfigurationURLOptionsError(NSString, NSString, NSURL, NSDictionary, NSError%)

Adds a new persistent store of a specified type at a given location, and returns the new store.

Original signature is '- (NSPersistentStore *)addPersistentStoreWithType:(NSString *)storeType configuration:(NSString *)configuration URL:(NSURL *)storeURL options:(NSDictionary *)options error:(NSError **)error'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSPersistentStore AddPersistentStoreWithTypeConfigurationURLOptionsError(
	NSString storeType,
	NSString configuration,
	NSURL storeURL,
	NSDictionary options,
	out NSError error
)
Public Overridable Function AddPersistentStoreWithTypeConfigurationURLOptionsError ( _
	storeType As NSString, _
	configuration As NSString, _
	storeURL As NSURL, _
	options As NSDictionary, _
	<OutAttribute> ByRef error As NSError _
) As NSPersistentStore
public:
virtual NSPersistentStore^ AddPersistentStoreWithTypeConfigurationURLOptionsError(
	NSString^ storeType, 
	NSString^ configuration, 
	NSURL^ storeURL, 
	NSDictionary^ options, 
	[OutAttribute] NSError^% error
)
Parameters
storeType (NSString)
A string constant (such as NSSQLiteStoreType) that specifies the store type—see “Store Types” for possible values.
configuration (NSString)
The name of a configuration in the receiver's managed object model that will be used by the new store. The configuration can be nil, in which case no other configurations are allowed.
storeURL (NSURL)
The file location of the persistent store.
options (NSDictionary)
A dictionary containing key-value pairs that specify whether the store should be read-only, and whether (for an XML store) the XML file should be validated against the DTD before it is read. For key definitions, see “Store Options” and “Migration Options”. This value may be nil.
error (NSError%)
If a new store cannot be created, upon return contains an instance of NSError that describes the problem
Return Value
The newly-created store or, if an error occurs, nil.
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)