MonobjcMonobjc Documented Class Library
WriteBookmarkDataToURLOptionsError Method (bookmarkData, bookmarkFileURL, options, error)
NamespacesMonobjc.FoundationNSURLWriteBookmarkDataToURLOptionsError(NSData, NSURL, NSURLBookmarkCreationOptions, NSError%)

Creates an alias file on disk at a specified location with specified bookmark data.

Original signature is '+ (BOOL)writeBookmarkData:(NSData *)bookmarkData toURL:(NSURL *)bookmarkFileURL options:(NSURLBookmarkFileCreationOptions)options error:(NSError **)error'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static bool WriteBookmarkDataToURLOptionsError(
	NSData bookmarkData,
	NSURL bookmarkFileURL,
	NSURLBookmarkCreationOptions options,
	out NSError error
Public Shared Function WriteBookmarkDataToURLOptionsError ( _
	bookmarkData As NSData, _
	bookmarkFileURL As NSURL, _
	options As NSURLBookmarkCreationOptions, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
static bool WriteBookmarkDataToURLOptionsError(
	NSData^ bookmarkData, 
	NSURL^ bookmarkFileURL, 
	NSURLBookmarkCreationOptions options, 
	[OutAttribute] NSError^% error
bookmarkData (NSData)
The bookmark data containing information for the alias file.
bookmarkFileURL (NSURL)
The desired location of the alias file.
options (NSURLBookmarkCreationOptions)
Options taken into account when creating the alias file.
error (NSError%)
The error that occurred in the case that the alias file cannot be created.
Return Value
YES if the alias file is successfully created; otherwise, NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)