MonobjcMonobjc Documented Class Library
FileURLWithPath Method (path)
NamespacesMonobjc.FoundationNSURLFileURLWithPath(NSString)

Initializes and returns a newly created NSURL object as a file URL with a specified path.

Original signature is '+ (id)fileURLWithPath:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSURL FileURLWithPath(
	NSString path
)
Public Shared Function FileURLWithPath ( _
	path As NSString _
) As NSURL
public:
static NSURL^ FileURLWithPath(
	NSString^ path
)
Parameters
path (NSString)
The path that the NSURL object will represent. path should be a valid system path. If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath.
Return Value
An NSURL object initialized with path.
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)