MonobjcMonobjc Documented Class Library
URLWithStringRelativeToURL Method (URLString, baseURL)
NamespacesMonobjc.FoundationNSURLURLWithStringRelativeToURL(NSString, NSURL)

Creates and returns an NSURL object initialized with a base URL and a relative string.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSURL URLWithStringRelativeToURL(
	NSString URLString,
	NSURL baseURL
)
Public Shared Function URLWithStringRelativeToURL ( _
	URLString As NSString, _
	baseURL As NSURL _
) As NSURL
public:
static NSURL^ URLWithStringRelativeToURL(
	NSString^ URLString, 
	NSURL^ baseURL
)
Parameters
URLString (NSString)
The string with which to initialize the NSURL object. May not be nil. Must conform to RFC 2396. URLString is interpreted relative to baseURL.
baseURL (NSURL)
The base URL for the NSURL object.
Return Value
An NSURL object initialized with URLString and baseURL. If URLString 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)