MonobjcMonobjc Documented Class Library
FileHandleForWritingToURLError Method (url, error)
NamespacesMonobjc.FoundationNSFileHandleFileHandleForWritingToURLError(NSURL, NSError%)

Returns a file handle initialized for writing to the file, device, or named socket at the specified URL.

Original signature is '+ (id)fileHandleForWritingToURL:(NSURL *)url error:(NSError **)error'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSFileHandle FileHandleForWritingToURLError(
	NSURL url,
	out NSError error
)
Public Shared Function FileHandleForWritingToURLError ( _
	url As NSURL, _
	<OutAttribute> ByRef error As NSError _
) As NSFileHandle
public:
static NSFileHandle^ FileHandleForWritingToURLError(
	NSURL^ url, 
	[OutAttribute] NSError^% error
)
Parameters
url (NSURL)
The URL of the file, device, or named socket to access.
error (NSError%)
If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.
Return Value
The initialized file handle, or nil if no file exists at url.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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