![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
DisplayResults Method | |
See Also Send Feedback |
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, System.Data.DataSet, or SimpleTaskResult.
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) | ![]() |
---|---|
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, System.Data.DataSet, or SimpleTaskResult.
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family