MonobjcMonobjc Documented Class Library
InitWithRequestDelegateStartImmediately Method (request, delegate, startImmediately)
NamespacesMonobjc.FoundationNSURLConnectionInitWithRequestDelegateStartImmediately(NSURLRequest, Id, Boolean)

Returns an initialized URL connection and begins to load the data for the URL request, if specified.

Original signature is '- (id)initWithRequest:(NSURLRequest *)request delegate:(id)delegate startImmediately:(BOOL)startImmediately'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithRequestDelegateStartImmediately(
	NSURLRequest request,
	Id delegate,
	bool startImmediately
)
Public Overridable Function InitWithRequestDelegateStartImmediately ( _
	request As NSURLRequest, _
	delegate As Id, _
	startImmediately As Boolean _
) As Id
public:
virtual Id^ InitWithRequestDelegateStartImmediately(
	NSURLRequest^ request, 
	Id^ delegate, 
	bool startImmediately
)
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. By default, for the connection to work correctly the calling thread’s run loop must be operating in the default run loop mode. See scheduleInRunLoop:forMode: to change the runloop and mode.]
startImmediately (Boolean)
YES if the connection should being loading data immediately, otherwise NO. If you pass NO, you must schedule the connection in a run loop before starting it.
Return Value
The URL connection for the URL request. Returns nil if a connection can't be initialized.
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)