[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Retrieves all the task result objects for the specified instance. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As ITaskRuntimeManagement
Dim instanceId As Guid
Dim criteria As TaskResultCriteria
Dim traversalDepth As TraversalDepth
Dim returnValue As IList(Of TaskResult)

returnValue = instance.GetTaskResults(instanceId, criteria, traversalDepth)

Syntax

Visual Basic
Function GetTaskResults ( _
		instanceId As Guid, _
		criteria As TaskResultCriteria, _
		traversalDepth As TraversalDepth _
) As IList(Of TaskResult)
C#
IList<TaskResult> GetTaskResults (
		Guid instanceId,
		TaskResultCriteria criteria,
		TraversalDepth traversalDepth
)
C++
IList<TaskResult^>^ GetTaskResults (
		Guid instanceId, 
		TaskResultCriteria^ criteria, 
		TraversalDepth traversalDepth
)
J#
IList<TaskResult> GetTaskResults (
		Guid instanceId, 
		TaskResultCriteria criteria, 
		TraversalDepth traversalDepth
)
JScript
function GetTaskResults (
		instanceId : Guid, 
		criteria : TaskResultCriteria, 
		traversalDepth : TraversalDepth
) : IList<TaskResult>

Parameters

instanceId

The instance ID.

criteria

The search criteria.

traversalDepth

Indicates whether to recurse down the relationship hierarchy and include classes that are parents to classes that are parents to this type and so on.

Return Value

Returns IList. The task results.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also