MonobjcMonobjc Documented Class Library
DataWithContentsOfURL Method (aURL)
NamespacesMonobjc.FoundationNSDataDataWithContentsOfURL(NSURL)

Returns a data object containing the data from the location specified by a given URL.

Original signature is '+ (id)dataWithContentsOfURL:(NSURL *)aURL'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSData DataWithContentsOfURL(
	NSURL aURL
)
Public Shared Function DataWithContentsOfURL ( _
	aURL As NSURL _
) As NSData
public:
static NSData^ DataWithContentsOfURL(
	NSURL^ aURL
)
Parameters
aURL (NSURL)
The URL from which to read data.
Return Value
A data object containing the data from the location specified by aURL. Returns nil if the data object could not be created.
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)