Editar

Compartir a través de


NSUrlSession.CreateUploadTask Method

Definition

Overloads

CreateUploadTask(NSUrlRequest, NSUrl, NSUrlSessionResponse)
CreateUploadTask(NSUrlRequest, NSData, NSUrlSessionResponse)
CreateUploadTask(NSUrlRequest, NSData)
CreateUploadTask(NSUrlRequest)

Creates an upload task.

CreateUploadTask(NSUrlRequest, NSUrl)

CreateUploadTask(NSUrlRequest, NSUrl, NSUrlSessionResponse)

[Foundation.Export("uploadTaskWithRequest:fromFile:completionHandler:")]
public virtual Foundation.NSUrlSessionUploadTask CreateUploadTask (Foundation.NSUrlRequest request, Foundation.NSUrl fileURL, Foundation.NSUrlSessionResponse completionHandler);
abstract member CreateUploadTask : Foundation.NSUrlRequest * Foundation.NSUrl * Foundation.NSUrlSessionResponse -> Foundation.NSUrlSessionUploadTask
override this.CreateUploadTask : Foundation.NSUrlRequest * Foundation.NSUrl * Foundation.NSUrlSessionResponse -> Foundation.NSUrlSessionUploadTask

Parameters

request
NSUrlRequest
fileURL
NSUrl
completionHandler
NSUrlSessionResponse

Returns

Attributes

Applies to

CreateUploadTask(NSUrlRequest, NSData, NSUrlSessionResponse)

[Foundation.Export("uploadTaskWithRequest:fromData:completionHandler:")]
public virtual Foundation.NSUrlSessionUploadTask CreateUploadTask (Foundation.NSUrlRequest request, Foundation.NSData bodyData, Foundation.NSUrlSessionResponse completionHandler);
abstract member CreateUploadTask : Foundation.NSUrlRequest * Foundation.NSData * Foundation.NSUrlSessionResponse -> Foundation.NSUrlSessionUploadTask
override this.CreateUploadTask : Foundation.NSUrlRequest * Foundation.NSData * Foundation.NSUrlSessionResponse -> Foundation.NSUrlSessionUploadTask

Parameters

request
NSUrlRequest
bodyData
NSData
completionHandler
NSUrlSessionResponse

Returns

Attributes

Applies to

CreateUploadTask(NSUrlRequest, NSData)

[Foundation.Export("uploadTaskWithRequest:fromData:")]
public virtual Foundation.NSUrlSessionUploadTask CreateUploadTask (Foundation.NSUrlRequest request, Foundation.NSData bodyData);
abstract member CreateUploadTask : Foundation.NSUrlRequest * Foundation.NSData -> Foundation.NSUrlSessionUploadTask
override this.CreateUploadTask : Foundation.NSUrlRequest * Foundation.NSData -> Foundation.NSUrlSessionUploadTask

Parameters

request
NSUrlRequest
bodyData
NSData

Returns

Attributes

Applies to

CreateUploadTask(NSUrlRequest)

Creates an upload task.

[Foundation.Export("uploadTaskWithStreamedRequest:")]
public virtual Foundation.NSUrlSessionUploadTask CreateUploadTask (Foundation.NSUrlRequest request);
abstract member CreateUploadTask : Foundation.NSUrlRequest -> Foundation.NSUrlSessionUploadTask
override this.CreateUploadTask : Foundation.NSUrlRequest -> Foundation.NSUrlSessionUploadTask

Parameters

request
NSUrlRequest

Returns

Attributes

Applies to

CreateUploadTask(NSUrlRequest, NSUrl)

[Foundation.Export("uploadTaskWithRequest:fromFile:")]
public virtual Foundation.NSUrlSessionUploadTask CreateUploadTask (Foundation.NSUrlRequest request, Foundation.NSUrl fileURL);
abstract member CreateUploadTask : Foundation.NSUrlRequest * Foundation.NSUrl -> Foundation.NSUrlSessionUploadTask
override this.CreateUploadTask : Foundation.NSUrlRequest * Foundation.NSUrl -> Foundation.NSUrlSessionUploadTask

Parameters

request
NSUrlRequest
fileURL
NSUrl

Returns

Attributes

Applies to