MonobjcMonobjc Documented Class Library
DataWithContentsOfURLOptionsError Method (aURL, mask, errorPtr)
NamespacesMonobjc.FoundationNSDataDataWithContentsOfURLOptionsError(NSURL, NSDataReadingOptions, NSError%)

Creates and returns a data object containing the data from the location specified by aURL.

Original signature is '+ (id)dataWithContentsOfURL:(NSURL *)aURL options:(NSDataReadingOptions)mask error:(NSError **)errorPtr'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSData DataWithContentsOfURLOptionsError(
	NSURL aURL,
	NSDataReadingOptions mask,
	out NSError errorPtr
)
Public Shared Function DataWithContentsOfURLOptionsError ( _
	aURL As NSURL, _
	mask As NSDataReadingOptions, _
	<OutAttribute> ByRef errorPtr As NSError _
) As NSData
public:
static NSData^ DataWithContentsOfURLOptionsError(
	NSURL^ aURL, 
	NSDataReadingOptions mask, 
	[OutAttribute] NSError^% errorPtr
)
Parameters
aURL (NSURL)
The URL from which to read data.
mask (NSDataReadingOptions)
A mask that specifies options for reading the data. Constant components are described in “NSDataReadingOptions”.
errorPtr (NSError%)
If there is an error reading in the data, upon return contains an NSError object that describes the problem.
Return Value

[Missing <returns> documentation for "M:Monobjc.Foundation.NSData.DataWithContentsOfURLOptionsError(Monobjc.Foundation.NSURL,Monobjc.Foundation.NSDataReadingOptions,Monobjc.Foundation.NSError@)"]

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)