ITaskConfigurationManagement.GetTasks Method (ManagementPackClass, ManagementPackTaskCriteria, BaseClassTraversalDepth)
Retrieves all the tasks targeted toward this type.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)
Usage
'Usage
Dim instance As ITaskConfigurationManagement
Dim managementPackClass As ManagementPackClass
Dim criteria As ManagementPackTaskCriteria
Dim baseClassTraversalDepth As BaseClassTraversalDepth
Dim returnValue As IList(Of ManagementPackTask)
returnValue = instance.GetTasks(managementPackClass, criteria, baseClassTraversalDepth)
Syntax
'Declaration
Function GetTasks ( _
managementPackClass As ManagementPackClass, _
criteria As ManagementPackTaskCriteria, _
baseClassTraversalDepth As BaseClassTraversalDepth _
) As IList(Of ManagementPackTask)
IList<ManagementPackTask> GetTasks (
ManagementPackClass managementPackClass,
ManagementPackTaskCriteria criteria,
BaseClassTraversalDepth baseClassTraversalDepth
)
IList<ManagementPackTask^>^ GetTasks (
ManagementPackClass^ managementPackClass,
ManagementPackTaskCriteria^ criteria,
BaseClassTraversalDepth baseClassTraversalDepth
)
IList<ManagementPackTask> GetTasks (
ManagementPackClass managementPackClass,
ManagementPackTaskCriteria criteria,
BaseClassTraversalDepth baseClassTraversalDepth
)
function GetTasks (
managementPackClass : ManagementPackClass,
criteria : ManagementPackTaskCriteria,
baseClassTraversalDepth : BaseClassTraversalDepth
) : IList<ManagementPackTask>
Parameters
- managementPackClass
The target class.
- criteria
The search criteria.
- baseClassTraversalDepth
One of the enumeration values that indicates whether the targeted class’s base class should also be used.
Return Value
Returns IList.
The tasks.
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
ITaskConfigurationManagement Interface
ITaskConfigurationManagement Members
Microsoft.EnterpriseManagement Namespace