ITaskRuntimeManagement.GetTaskResults Method (Guid, TaskResultCriteria, TraversalDepth)
Retrieves all the task result objects for the specified instance.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)
Usage
'Usage
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
'Declaration
Function GetTaskResults ( _
instanceId As Guid, _
criteria As TaskResultCriteria, _
traversalDepth As TraversalDepth _
) As IList(Of TaskResult)
IList<TaskResult> GetTaskResults (
Guid instanceId,
TaskResultCriteria criteria,
TraversalDepth traversalDepth
)
IList<TaskResult^>^ GetTaskResults (
Guid instanceId,
TaskResultCriteria^ criteria,
TraversalDepth traversalDepth
)
IList<TaskResult> GetTaskResults (
Guid instanceId,
TaskResultCriteria criteria,
TraversalDepth traversalDepth
)
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 Vista, Windows Server 2003, and
Target Platforms
Windows Server 2008,Windows Server 2003
See Also
Reference
ITaskRuntimeManagement Interface
ITaskRuntimeManagement Members
Microsoft.EnterpriseManagement Namespace