Share via


ManagementGroup.GetMonitoringTasks Method

Definition

Retrieves the monitoring tasks.

Overloads

GetMonitoringTasks()
Obsolete.

Gets tasks.

GetMonitoringTasks(ManagementPackTaskCriteria)
Obsolete.

Gets tasks based on criteria.

GetMonitoringTasks<T>(ICollection<T>)
Obsolete.

Gets all the tasks in this management group targeted to any of these instances.

GetMonitoringTasks<T>(ManagementPackTaskCriteria, ICollection<T>)
Obsolete.

Gets all the tasks in this management group targeted to any of these instances.

GetMonitoringTasks()

Caution

Please use TaskConfiguration.GetTasks()

Gets tasks.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^> ^ GetMonitoringTasks();
[System.Obsolete("Please use TaskConfiguration.GetTasks()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTask> GetMonitoringTasks ();
member this.GetMonitoringTasks : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTask>
Public Function GetMonitoringTasks () As ReadOnlyCollection(Of MonitoringTask)

Returns

A collection of tasks that match the criteria.

Attributes

Applies to

GetMonitoringTasks(ManagementPackTaskCriteria)

Caution

Please use TaskConfiguration.GetTasks()

Gets tasks based on criteria.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^> ^ GetMonitoringTasks(Microsoft::EnterpriseManagement::Configuration::ManagementPackTaskCriteria ^ criteria);
[System.Obsolete("Please use TaskConfiguration.GetTasks()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTask> GetMonitoringTasks (Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria criteria);
member this.GetMonitoringTasks : Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTask>
Public Function GetMonitoringTasks (criteria As ManagementPackTaskCriteria) As ReadOnlyCollection(Of MonitoringTask)

Parameters

criteria
ManagementPackTaskCriteria

The criteria.

Returns

A collection of tasks that match the criteria.

Attributes

Applies to

GetMonitoringTasks<T>(ICollection<T>)

Caution

Please use TaskConfiguration.GetTasks<T>()

Gets all the tasks in this management group targeted to any of these instances.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^> ^ GetMonitoringTasks(System::Collections::Generic::ICollection<T> ^ monitoringObjects);
[System.Obsolete("Please use TaskConfiguration.GetTasks<T>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTask> GetMonitoringTasks<T> (System.Collections.Generic.ICollection<T> monitoringObjects) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.GetMonitoringTasks : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTask> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetMonitoringTasks(Of T As PartialMonitoringObject) (monitoringObjects As ICollection(Of T)) As ReadOnlyCollection(Of MonitoringTask)

Type Parameters

T

Must be of type PartialMonitoringObject.

Parameters

monitoringObjects
ICollection<T>

The monitoring objects.

Returns

A collection of MonitoringTask objects.

Attributes

Exceptions

monitoringObjects is null

There was invalid data in the database corresponding to this method call.

Applies to

GetMonitoringTasks<T>(ManagementPackTaskCriteria, ICollection<T>)

Caution

Please use TaskConfiguration.GetTasks<T>()

Gets all the tasks in this management group targeted to any of these instances.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^> ^ GetMonitoringTasks(Microsoft::EnterpriseManagement::Configuration::ManagementPackTaskCriteria ^ criteria, System::Collections::Generic::ICollection<T> ^ monitoringObjects);
[System.Obsolete("Please use TaskConfiguration.GetTasks<T>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTask> GetMonitoringTasks<T> (Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria criteria, System.Collections.Generic.ICollection<T> monitoringObjects) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.GetMonitoringTasks : Microsoft.EnterpriseManagement.Configuration.ManagementPackTaskCriteria * System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTask> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetMonitoringTasks(Of T As PartialMonitoringObject) (criteria As ManagementPackTaskCriteria, monitoringObjects As ICollection(Of T)) As ReadOnlyCollection(Of MonitoringTask)

Type Parameters

T

Must be of typePartialMonitoringObject.

Parameters

criteria
ManagementPackTaskCriteria

The criteria

monitoringObjects
ICollection<T>

The monitoring objects.

Returns

A collection of MonitoringTask objects.

Attributes

Exceptions

monitoringObjects is null

There was invalid data in the database corresponding to this method call.

Applies to