MonobjcMonobjc Documented Class Library
WriteToURLAtomically Method (aURL, atomically)
NamespacesMonobjc.FoundationNSDataWriteToURLAtomically(NSURL, Boolean)

Writes the bytes in the receiver to the location specified by aURL.

Original signature is '- (BOOL)writeToURL:(NSURL *)aURL atomically:(BOOL)atomically'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool WriteToURLAtomically(
	NSURL aURL,
	bool atomically
)
Public Overridable Function WriteToURLAtomically ( _
	aURL As NSURL, _
	atomically As Boolean _
) As Boolean
public:
virtual bool WriteToURLAtomically(
	NSURL^ aURL, 
	bool atomically
)
Parameters
aURL (NSURL)
The location to which to write the receiver's bytes. Only file:// URLs are supported.
atomically (Boolean)
If YES, the data is written to a backup location, and then—assuming no errors occur—the backup location is renamed to the name specified by aURL; otherwise, the data is written directly to aURL. atomically is ignored if aURL is not of a type the supports atomic writes.
Return Value
YES if the operation succeeds, 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)

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