ITaskConfigurationManagement.GetTasks Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves tasks.
Overloads
GetTasks() |
Retrieves tasks. |
GetTasks(ManagementPackTaskCriteria) |
Retrieves tasks based on the criteria. |
GetTasks(EnterpriseManagementObject, ManagementPackTaskCriteria) |
Retrieves all the tasks targeted toward this monitoring object, based on all the types of the entity and their base types. |
GetTasks(ManagementPackClass, ManagementPackTaskCriteria, BaseClassTraversalDepth) |
Retrieves all the tasks targeted toward this type. |
GetTasks<T>(IEnumerable<T>, ManagementPackTaskCriteria) |
Retrieves all the tasks in this management group targeted to any of these instances.. |
GetTasks()
Retrieves tasks.
public:
System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^> ^ GetTasks();
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask> GetTasks ();
abstract member GetTasks : unit -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask>
Public Function GetTasks () As IList(Of ManagementPackTask)
Returns
Returns IList<T>.
The tasks.
Applies to
GetTasks(ManagementPackTaskCriteria)
Retrieves tasks based on the criteria.
public:
System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^> ^ GetTasks(Microsoft::EnterpriseManagement::Configuration::ManagementPackTaskCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask> GetTasks (Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria criteria);
abstract member GetTasks : Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask>
Public Function GetTasks (criteria As ManagementPackTaskCriteria) As IList(Of ManagementPackTask)
Parameters
- criteria
- ManagementPackTaskCriteria
The search criteria.
Returns
Returns IList<T>.
The tasks.
Applies to
GetTasks(EnterpriseManagementObject, ManagementPackTaskCriteria)
Retrieves all the tasks targeted toward this monitoring object, based on all the types of the entity and their base types.
public:
System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^> ^ GetTasks(Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject ^ instance, Microsoft::EnterpriseManagement::Configuration::ManagementPackTaskCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask> GetTasks (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria criteria);
abstract member GetTasks : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask>
Public Function GetTasks (instance As EnterpriseManagementObject, criteria As ManagementPackTaskCriteria) As IList(Of ManagementPackTask)
Parameters
- instance
- EnterpriseManagementObject
The target instance.
- criteria
- ManagementPackTaskCriteria
The search criteria.
Returns
Returns IList<T>.
The tasks.
Applies to
GetTasks(ManagementPackClass, ManagementPackTaskCriteria, BaseClassTraversalDepth)
Retrieves all the tasks targeted toward this type.
public:
System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^> ^ GetTasks(Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass, Microsoft::EnterpriseManagement::Configuration::ManagementPackTaskCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::BaseClassTraversalDepth baseClassTraversalDepth);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask> GetTasks (Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass, Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria criteria, Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth baseClassTraversalDepth);
abstract member GetTasks : Microsoft.EnterpriseManagement.Configuration.ManagementPackClass * Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria * Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask>
Public Function GetTasks (managementPackClass As ManagementPackClass, criteria As ManagementPackTaskCriteria, baseClassTraversalDepth As BaseClassTraversalDepth) As IList(Of ManagementPackTask)
Parameters
- managementPackClass
- ManagementPackClass
The target class.
- criteria
- ManagementPackTaskCriteria
The search criteria.
- baseClassTraversalDepth
- BaseClassTraversalDepth
One of the enumeration values that indicates whether the targeted class’s base class should also be used.
Returns
Returns IList<T>.
The tasks.
Applies to
GetTasks<T>(IEnumerable<T>, ManagementPackTaskCriteria)
Retrieves all the tasks in this management group targeted to any of these instances..
public:
generic <typename T>
where T : Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^> ^ GetTasks(System::Collections::Generic::IEnumerable<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::ManagementPackTaskCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask> GetTasks<T> (System.Collections.Generic.IEnumerable<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria criteria) where T : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject;
abstract member GetTasks : seq<'T (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)> * Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackTask> (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)
Public Function GetTasks(Of T As EnterpriseManagementObject) (monitoringObjects As IEnumerable(Of T), criteria As ManagementPackTaskCriteria) As IList(Of ManagementPackTask)
Type Parameters
- T
Parameters
- monitoringObjects
- IEnumerable<T>
The target instances.
- criteria
- ManagementPackTaskCriteria
The search criteria.
Returns
Returns IList<T>.
The tasks.