MonobjcMonobjc Documented Class Library
NSURL Constructor (scheme, host, path)
NamespacesMonobjc.FoundationNSURLNSURL(NSString, NSString, NSString)

Initializes a newly created NSURL with a specified scheme, host, and path.

Original signature is '- (id)initWithScheme:(NSString *)scheme host:(NSString *)host path:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSURL(
	NSString scheme,
	NSString host,
	NSString path
)
Public Sub New ( _
	scheme As NSString, _
	host As NSString, _
	path As NSString _
)
public:
NSURL(
	NSString^ scheme, 
	NSString^ host, 
	NSString^ path
)
Parameters
scheme (NSString)
The scheme for the NSURL object.
host (NSString)
The host for the NSURL object. May be the empty string.
path (NSString)
The path for the NSURL object. If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath.
Return Value
The newly initialized NSURL object.
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)