MonobjcMonobjc Documented Class Library
ImportStoreWithIdentifierFromExternalRecordsDirectoryToURLOptionsWithTypeError Method (storeIdentifier, externalRecordsURL, destinationURL, options, storeType, error)
NamespacesMonobjc.CoreDataNSPersistentStoreCoordinatorImportStoreWithIdentifierFromExternalRecordsDirectoryToURLOptionsWithTypeError(NSString, NSURL, NSURL, NSDictionary, NSString, NSError%)

Creates and populates a store with the external records found at a given URL.

Original signature is '- (NSPersistentStore *)importStoreWithIdentifier:(NSString *)storeIdentifier fromExternalRecordsDirectory:(NSURL *)externalRecordsURL toURL:(NSURL *)destinationURL options:(NSDictionary *)options withType:(NSString *)storeType error:(NSError **)error'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSPersistentStore ImportStoreWithIdentifierFromExternalRecordsDirectoryToURLOptionsWithTypeError(
	NSString storeIdentifier,
	NSURL externalRecordsURL,
	NSURL destinationURL,
	NSDictionary options,
	NSString storeType,
	out NSError error
)
Public Overridable Function ImportStoreWithIdentifierFromExternalRecordsDirectoryToURLOptionsWithTypeError ( _
	storeIdentifier As NSString, _
	externalRecordsURL As NSURL, _
	destinationURL As NSURL, _
	options As NSDictionary, _
	storeType As NSString, _
	<OutAttribute> ByRef error As NSError _
) As NSPersistentStore
public:
virtual NSPersistentStore^ ImportStoreWithIdentifierFromExternalRecordsDirectoryToURLOptionsWithTypeError(
	NSString^ storeIdentifier, 
	NSURL^ externalRecordsURL, 
	NSURL^ destinationURL, 
	NSDictionary^ options, 
	NSString^ storeType, 
	[OutAttribute] NSError^% error
)
Parameters
storeIdentifier (NSString)
The identifier for a store.
externalRecordsURL (NSURL)
The location of the directory containing external records.
destinationURL (NSURL)
An URL object that specifies the location for the new 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.”
storeType (NSString)
A string constant (such as NSSQLiteStoreType) that specifies the type of the new store—see “Store Types.”
error (NSError%)
If an error occurs, upon return contains an instance of NSError that describes the problem.
Return Value
An object representing the newly-created store.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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