MonobjcMonobjc Documented Class Library
URLWithString Method (URLString)

Creates and returns an NSURL object initialized with a provided string.

Original signature is '+ (id)URLWithString:(NSString *)URLString'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSURL URLWithString(
	NSString URLString
Public Shared Function URLWithString ( _
	URLString As NSString _
static NSURL^ URLWithString(
	NSString^ URLString
URLString (NSString)
The string with which to initialize the NSURL object. Must conform to RFC 2396. This method parses URLString according to RFCs 1738 and 1808.
Return Value
An NSURL object initialized with URLString. If the string was malformed, returns nil.
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)