MonitoringClass.GetMonitoringTasks Method

Definition

Retrieves the monitoring task objects that target this monitoring class.

Overloads

GetMonitoringTasks(ManagementPackTaskCriteria)
Obsolete.

Gets all the tasks targeted toward this type.

GetMonitoringTasks(ManagementPackTaskCriteria, BaseClassTraversalDepth)
Obsolete.

Gets all the tasks targeted toward this type.

GetMonitoringTasks()
Obsolete.

Gets all the tasks targeted toward this type.

GetMonitoringTasks(BaseClassTraversalDepth)
Obsolete.

Gets all the tasks targeted toward this type.

GetMonitoringTasks(ManagementPackTaskCriteria)

Caution

Use ManagementGroup.TaskConfiguration.GetTasks

Gets all the tasks targeted toward this type.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^> ^ GetMonitoringTasks(Microsoft::EnterpriseManagement::Configuration::ManagementPackTaskCriteria ^ criteria);
[System.Obsolete("Use ManagementGroup.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 to apply to the tasks.

Returns

A collection of task objects.

Attributes

Exceptions

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

Applies to

GetMonitoringTasks(ManagementPackTaskCriteria, BaseClassTraversalDepth)

Caution

Use ManagementGroup.TaskConfiguration.GetTasks

Gets all the tasks targeted toward this type.

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

Parameters

criteria
ManagementPackTaskCriteria

The criteria to apply to the tasks.

baseClassTraversalDepth
BaseClassTraversalDepth

Indicates whether or not to include this classes base classes as targets for the MonitoringTask.

Returns

A collection of task objects.

Attributes

Exceptions

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

Applies to

GetMonitoringTasks()

Caution

Use ManagementGroup.TaskConfiguration.GetTasks

Gets all the tasks targeted toward this type.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^> ^ GetMonitoringTasks();
[System.Obsolete("Use ManagementGroup.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 task objects.

Attributes

Exceptions

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

Applies to

GetMonitoringTasks(BaseClassTraversalDepth)

Caution

Use ManagementGroup.TaskConfiguration.GetTasks

Gets all the tasks targeted toward this type.

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

Parameters

baseClassTraversalDepth
BaseClassTraversalDepth

Indicates whether or not to include this classes base classes as targets for the MonitoringTask.

Returns

A collection of task objects.

Attributes

Exceptions

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

Applies to