MonobjcMonobjc Documented Class Library
NSData Constructor (aURL)
NamespacesMonobjc.FoundationNSDataNSData(NSURL)

Initializes a newly allocated data object initialized with the data from the location specified by aURL.

Original signature is '- (id)initWithContentsOfURL:(NSURL *)aURL'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSData(
	NSURL aURL
)
Public Sub New ( _
	aURL As NSURL _
)
public:
NSData(
	NSURL^ aURL
)
Parameters
aURL (NSURL)
The URL from which to read data
Return Value
An NSData object initialized with the data from the location specified by aURL. The returned object might be different than the original receiver.
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)