Condividi tramite


TaskItem Constructors

Definition

Initializes a new instance of the TaskItem class.

Overloads

TaskItem()

Default constructor -- we need it so this type is COM-createable.

TaskItem(ITaskItem)

This constructor creates a new TaskItem, using the given ITaskItem.

TaskItem(String)

This constructor creates a new task item, given the item spec.

TaskItem(String, IDictionary)

This constructor creates a new TaskItem, using the given item spec and metadata.

TaskItem()

Source:
TaskItem.cs

Default constructor -- we need it so this type is COM-createable.

public:
 TaskItem();
public TaskItem ();
Public Sub New ()

Remarks

This constructor enables this type to be COM-creatable.

Applies to

TaskItem(ITaskItem)

Source:
TaskItem.cs

This constructor creates a new TaskItem, using the given ITaskItem.

public:
 TaskItem(Microsoft::Build::Framework::ITaskItem ^ sourceItem);
public TaskItem (Microsoft.Build.Framework.ITaskItem sourceItem);
new Microsoft.Build.Utilities.TaskItem : Microsoft.Build.Framework.ITaskItem -> Microsoft.Build.Utilities.TaskItem
Public Sub New (sourceItem As ITaskItem)

Parameters

sourceItem
ITaskItem

The item to copy.

Applies to

TaskItem(String)

Source:
TaskItem.cs

This constructor creates a new task item, given the item spec.

public:
 TaskItem(System::String ^ itemSpec);
public TaskItem (string itemSpec);
new Microsoft.Build.Utilities.TaskItem : string -> Microsoft.Build.Utilities.TaskItem
Public Sub New (itemSpec As String)

Parameters

itemSpec
String

The item-spec string.

Applies to

TaskItem(String, IDictionary)

Source:
TaskItem.cs

This constructor creates a new TaskItem, using the given item spec and metadata.

public:
 TaskItem(System::String ^ itemSpec, System::Collections::IDictionary ^ itemMetadata);
public TaskItem (string itemSpec, System.Collections.IDictionary itemMetadata);
new Microsoft.Build.Utilities.TaskItem : string * System.Collections.IDictionary -> Microsoft.Build.Utilities.TaskItem
Public Sub New (itemSpec As String, itemMetadata As IDictionary)

Parameters

itemSpec
String

The item-spec string.

itemMetadata
IDictionary

Custom metadata on the item.

Applies to