ArcGIS Runtime SDK for WPF - Library Reference
GetResultImageLayerTaskAsync(String,String,CancellationToken) Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > Geoprocessor Class > GetResultImageLayerTaskAsync Method : GetResultImageLayerTaskAsync(String,String,CancellationToken) Method

jobId
A string that uniquely identifies a job on the server. It is created when a job is submitted for execution and later used to check its status and retrieve the results.
parameterName
The name of the result parameter as defined in ArcGIS Services Directory.
cancellationToken
The cancellation token for cancelling task.
Sends a request to the Geoprocessor task to get the task result identified by jobId and parameterName. Creates and configures a GPResultImageLayer instance ready to be added to a Map.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetResultImageLayerTaskAsync( _
   ByVal jobId As String, _
   ByVal parameterName As String, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of GPResultImageLayer)
C# 
public Task<GPResultImageLayer> GetResultImageLayerTaskAsync( 
   string jobId,
   string parameterName,
   CancellationToken cancellationToken
)

Parameters

jobId
A string that uniquely identifies a job on the server. It is created when a job is submitted for execution and later used to check its status and retrieve the results.
parameterName
The name of the result parameter as defined in ArcGIS Services Directory.
cancellationToken
The cancellation token for cancelling task.

Return Value

a Task object with GPResultImageLayer 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.