Modifier

Partager via


NSUrlSession.CreateDataTask Method

Definition

Overloads

CreateDataTask(NSUrl)

Creates an HTTP request based on the specified url.

CreateDataTask(NSUrlRequest)
CreateDataTask(NSUrl, NSUrlSessionResponse)
CreateDataTask(NSUrlRequest, NSUrlSessionResponse)

CreateDataTask(NSUrl)

Creates an HTTP request based on the specified url.

[Foundation.Export("dataTaskWithURL:")]
public virtual Foundation.NSUrlSessionDataTask CreateDataTask (Foundation.NSUrl url);
abstract member CreateDataTask : Foundation.NSUrl -> Foundation.NSUrlSessionDataTask
override this.CreateDataTask : Foundation.NSUrl -> Foundation.NSUrlSessionDataTask

Parameters

url
NSUrl

Returns

Attributes

Applies to

CreateDataTask(NSUrlRequest)

[Foundation.Export("dataTaskWithRequest:")]
public virtual Foundation.NSUrlSessionDataTask CreateDataTask (Foundation.NSUrlRequest request);
abstract member CreateDataTask : Foundation.NSUrlRequest -> Foundation.NSUrlSessionDataTask
override this.CreateDataTask : Foundation.NSUrlRequest -> Foundation.NSUrlSessionDataTask

Parameters

request
NSUrlRequest

Returns

Attributes

Applies to

CreateDataTask(NSUrl, NSUrlSessionResponse)

[Foundation.Export("dataTaskWithURL:completionHandler:")]
public virtual Foundation.NSUrlSessionDataTask CreateDataTask (Foundation.NSUrl url, Foundation.NSUrlSessionResponse completionHandler);
abstract member CreateDataTask : Foundation.NSUrl * Foundation.NSUrlSessionResponse -> Foundation.NSUrlSessionDataTask
override this.CreateDataTask : Foundation.NSUrl * Foundation.NSUrlSessionResponse -> Foundation.NSUrlSessionDataTask

Parameters

url
NSUrl
completionHandler
NSUrlSessionResponse

To be added.

This parameter can be null.

Returns

Attributes

Applies to

CreateDataTask(NSUrlRequest, NSUrlSessionResponse)

[Foundation.Export("dataTaskWithRequest:completionHandler:")]
public virtual Foundation.NSUrlSessionDataTask CreateDataTask (Foundation.NSUrlRequest request, Foundation.NSUrlSessionResponse completionHandler);
abstract member CreateDataTask : Foundation.NSUrlRequest * Foundation.NSUrlSessionResponse -> Foundation.NSUrlSessionDataTask
override this.CreateDataTask : Foundation.NSUrlRequest * Foundation.NSUrlSessionResponse -> Foundation.NSUrlSessionDataTask

Parameters

request
NSUrlRequest
completionHandler
NSUrlSessionResponse

To be added.

This parameter can be null.

Returns

Attributes

Applies to