NSUrlSession.CreateDataTask Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Returns
- Attributes