MonobjcMonobjc Documented Class Library
ConnectionWithRequestDelegate Method (request, delegate)
NamespacesMonobjc.FoundationNSURLConnectionConnectionWithRequestDelegate(NSURLRequest, Id)

Creates and returns an initialized URL connection and begins to load the data for the URL request.

Original signature is '+ (NSURLConnection *)connectionWithRequest:(NSURLRequest *)request delegate:(id)delegate'

Available in Mac OS X v10.2 with Safari 1.0 installed and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSURLConnection ConnectionWithRequestDelegate(
	NSURLRequest request,
	Id delegate
)
Public Shared Function ConnectionWithRequestDelegate ( _
	request As NSURLRequest, _
	delegate As Id _
) As NSURLConnection
public:
static NSURLConnection^ ConnectionWithRequestDelegate(
	NSURLRequest^ request, 
	Id^ delegate
)
Parameters
request (NSURLRequest)
The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.
delegate (Id)
The delegate object for the connection. The delegate will receive delegate messages as the load progresses. Messages to the delegate will be sent on the thread that calls this method. For the connection to work correctly the calling thread’s run loop must be operating in the default run loop mode.]
Return Value
The URL connection for the URL request. Returns nil if a connection can't be created.
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)