MonobjcMonobjc Documented Class Library
FileURLWithPathIsDirectory Method (path, isDir)
NamespacesMonobjc.FoundationNSURLFileURLWithPathIsDirectory(NSString, Boolean)

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

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

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSURL FileURLWithPathIsDirectory(
	NSString path,
	bool isDir
)
Public Shared Function FileURLWithPathIsDirectory ( _
	path As NSString, _
	isDir As Boolean _
) As NSURL
public:
static NSURL^ FileURLWithPathIsDirectory(
	NSString^ path, 
	bool isDir
)
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.
isDir (Boolean)
A Boolean value that specifies whether path is treated as a directory path when resolving against relative path components. Pass YES if the path indicates a directory, NO otherwise.
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)