Share via


FavoriteConsoleTask(String, ManagementPackConsoleTask) Constructor

Definition

Creates a new FavoriteConsoleTask.

public:
 FavoriteConsoleTask(System::String ^ name, Microsoft::EnterpriseManagement::Configuration::ManagementPackConsoleTask ^ task);
public FavoriteConsoleTask (string name, Microsoft.EnterpriseManagement.Configuration.ManagementPackConsoleTask task);
new Microsoft.EnterpriseManagement.Monitoring.FavoriteConsoleTask : string * Microsoft.EnterpriseManagement.Configuration.ManagementPackConsoleTask -> Microsoft.EnterpriseManagement.Monitoring.FavoriteConsoleTask
Public Sub New (name As String, task As ManagementPackConsoleTask)

Parameters

name
String

The display name of the favorite task.

task
ManagementPackConsoleTask

The contained task of the favorite task.

Exceptions

name or task is null

name.Length is out of range (1 to 256)

Applies to