Sets the metadata for the store at a given URL.
Original signature is '+ (BOOL)setMetadata:(NSDictionary *)metadata forPersistentStoreWithURL:(NSURL *)url error:(NSError **)error'
Available in Mac OS X v10.5 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static bool SetMetadataForPersistentStoreWithURLError( NSDictionary metadata, NSURL url, out NSError error )
Public Shared Function SetMetadataForPersistentStoreWithURLError ( _ metadata As NSDictionary, _ url As NSURL, _ <OutAttribute> ByRef error As NSError _ ) As Boolean
public: static bool SetMetadataForPersistentStoreWithURLError( NSDictionary^ metadata, NSURL^ url, [OutAttribute] NSError^% error )
Parameters
- metadata (NSDictionary)
- The metadata for the store at url.
- url (NSURL)
- The location of the store.
- error (NSError%)
- If an error occurs, upon return contains an NSError object that describes the problem.
Return Value
YES if the metadata was written 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)