Initializes a new FavoriteTask object. Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim name As String
Dim task As MonitoringTask

Dim instance As New FavoriteTask(name, task)

Syntax

Visual Basic
Public Sub New ( _
		name As String, _
		task As MonitoringTask _
)
C#
public FavoriteTask (
		string name,
		MonitoringTask task
)
C++
public:
FavoriteTask (
		String^ name, 
		MonitoringTask^ task
)
J#
public FavoriteTask (
		String name, 
		MonitoringTask task
)
JScript
public function FavoriteTask (
		name : String, 
		task : MonitoringTask
)

Parameters

name

The display name of the favorite task.

task

The task that is contained in the favorite task.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also