MonobjcMonobjc Documented Class Library
NSData Constructor (path)
NamespacesMonobjc.FoundationNSDataNSData(NSString)

Returns a data object initialized by reading into it the data from the file specified by a given path.

Original signature is '- (id)initWithContentsOfFile:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSData(
	NSString path
)
Public Sub New ( _
	path As NSString _
)
public:
NSData(
	NSString^ path
)
Parameters
path (NSString)
The absolute path of the file from which to read data.
Return Value
A data object initialized by reading into it the data from the file specified by path. 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)