Writes the contents of the document to a file or file package located by a URL, formatted to a specified type.
Original signature is '- (BOOL)writeToURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public virtual bool WriteToURLOfTypeError( NSURL absoluteURL, NSString typeName, out NSError outError )
Public Overridable Function WriteToURLOfTypeError ( _ absoluteURL As NSURL, _ typeName As NSString, _ <OutAttribute> ByRef outError As NSError _ ) As Boolean
public: virtual bool WriteToURLOfTypeError( NSURL^ absoluteURL, NSString^ typeName, [OutAttribute] NSError^% outError )

- absoluteURL (NSURL)
- The location to which the document contents are written.
- typeName (NSString)
- The string that identifies the document type.
- outError (NSError%)
- On return, If the document contents could not be written, a pointer to an error object that encapsulates the reason they could not be written.

YES if the document contents could be written; otherwise, NO.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)