ArcGIS Runtime SDK for WPF - Library Reference
UploadTaskAsync(UploadParameters,CancellationToken) Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > UploadTask Class > UploadTaskAsync Method : UploadTaskAsync(UploadParameters,CancellationToken) Method

uploadParameters
Contains file stream and information about the file.
cancellationToken
The cancellation token for cancelling task.
Uploads the file to the server.

Syntax

Visual Basic (Declaration) 
Public Overloads Function UploadTaskAsync( _
   ByVal uploadParameters As UploadParameters, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of UploadResult)

Parameters

uploadParameters
Contains file stream and information about the file.
cancellationToken
The cancellation token for cancelling task.

Return Value

a Task object with UploadResult upon successful completion. Otherwise, the Task.Exception is set.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.