Task Constructors

Definition

Initializes a new instance of the Task class.

Overloads

Task()

Initializes a new instance of the Task class.

Task(ResourceManager)

Initializes a new instance of the Task class with the specified TaskResources.

Task(ResourceManager, String)

Initializes a new instance of the Task class with the specified TaskResources and HelpKeywordPrefix.

Task()

Initializes a new instance of the Task class.

protected:
 Task();
protected Task ();
Protected Sub New ()

Task(ResourceManager)

Initializes a new instance of the Task class with the specified TaskResources.

protected:
 Task(System::Resources::ResourceManager ^ taskResources);
protected Task (System.Resources.ResourceManager taskResources);
new Microsoft.Build.Utilities.Task : System.Resources.ResourceManager -> Microsoft.Build.Utilities.Task
Protected Sub New (taskResources As ResourceManager)

Parameters

taskResources
ResourceManager

The task resources.

Remarks

This constructor allows derived task classes to register their resources.

Task(ResourceManager, String)

Initializes a new instance of the Task class with the specified TaskResources and HelpKeywordPrefix.

protected:
 Task(System::Resources::ResourceManager ^ taskResources, System::String ^ helpKeywordPrefix);
protected Task (System.Resources.ResourceManager taskResources, string helpKeywordPrefix);
new Microsoft.Build.Utilities.Task : System.Resources.ResourceManager * string -> Microsoft.Build.Utilities.Task
Protected Sub New (taskResources As ResourceManager, helpKeywordPrefix As String)

Parameters

taskResources
ResourceManager

The task resources.

helpKeywordPrefix
String

The prefix to append to string resources to create Help keywords.

Remarks

This constructor allows derived task classes to register their resources, as well as provide a prefix for composing help keywords from string resource names. If helpKeywordPrefix is an empty string, string resource names will be used verbatim as help keywords.

Applies to