Task Constructors

Definition

Initializes a new instance of the Task class.

Overloads

Task()

Default (family) constructor.

Task(ResourceManager)

This (family) constructor allows derived task classes to register their resources.

Task(ResourceManager, String)

This (family) constructor allows derived task classes to register their resources, as well as provide a prefix for composing help keywords from string resource names. If the prefix is an empty string, then string resource names will be used verbatim as help keywords. For an example of how the prefix is used, see the TaskLoggingHelper.LogErrorWithCodeFromResources(string, object[]) method.

Task()

Default (family) constructor.

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

Applies to

Task(ResourceManager)

This (family) constructor allows derived task classes to register their resources.

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.

Applies to

Task(ResourceManager, String)

This (family) constructor allows derived task classes to register their resources, as well as provide a prefix for composing help keywords from string resource names. If the prefix is an empty string, then string resource names will be used verbatim as help keywords. For an example of how the prefix is used, see the TaskLoggingHelper.LogErrorWithCodeFromResources(string, object[]) method.

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 help keyword prefix.

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