ESRI.ArcGIS.ADF.Web.UI.WebControls
DisplayResults Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : DisplayResults Method




task
Task instance that created the task results.
taskJobID
Unique ID for the task. Identifies the task results within the TaskResults nodes.
taskInputs
Inputs used to generate the task results in the task, and that may be used to re-run the task via the results context menu.
taskResults
Results from executing the task. One of TaskResultNode, DataSet, or SimpleTaskResult.
Adds the task results to the TaskResults control.

Syntax

Visual Basic (Declaration) 
Public Sub DisplayResults( _
   ByVal task As ITask, _
   ByVal taskJobID As String, _
   ByVal taskInputs As Object, _
   ByVal taskResults As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim task As ITask
Dim taskJobID As String
Dim taskInputs As Object
Dim taskResults As Object
 
instance.DisplayResults(task, taskJobID, taskInputs, taskResults)
C# 
public void DisplayResults( 
   ITask task,
   string taskJobID,
   object taskInputs,
   object taskResults
)

Parameters

task
Task instance that created the task results.
taskJobID
Unique ID for the task. Identifies the task results within the TaskResults nodes.
taskInputs
Inputs used to generate the task results in the task, and that may be used to re-run the task via the results context menu.
taskResults
Results from executing the task. One of TaskResultNode, DataSet, or SimpleTaskResult.

Remarks

This method adds the task results to the TaskResults control and displays them to the user. It replaces previously added results with the same taskJobID, for example, an activity indicator node. It also sets the refreshed control contents into the callback results for the control.

The taskResults argument must pass one of the following types. Other types will cause a node with the message "no results found" to be displayed.

  • TaskResultNode. Since the TaskResultNode already contains a task reference, TaskJobID, and task inputs, these other arguments for the method are ignored.
  • DataSet. The DataSet is used to construct a new TaskResultNode, with the other arguments stored in this TaskResultNode.
  • SimpleTaskResult. In this case, a new TaskResultNode is created, with the SimpleTaskResult's header and detail displayed in the new TaskResultNode.

See Also

© 2010 All Rights Reserved.