Language

TaskItem<T> Constructors

Definition

Overloads

Name Description
TaskItem<T>(ITaskItem)

Initializes a new instance of TaskItem<T> from an ITaskItem.

TaskItem<T>(T)

Initializes a new instance of TaskItem<T> from a strongly-typed value.

TaskItem<T>(ITaskItem)

Source:
TaskItem_T.cs

Initializes a new instance of TaskItem<T> from an ITaskItem.

public:
 TaskItem(Microsoft::Build::Framework::ITaskItem ^ item);
public TaskItem(Microsoft.Build.Framework.ITaskItem item);
new Microsoft.Build.Framework.TaskItem<'T> : Microsoft.Build.Framework.ITaskItem -> Microsoft.Build.Framework.TaskItem<'T>
Public Sub New (item As ITaskItem)

Parameters

item
ITaskItem

The task item to parse.

Exceptions

Thrown if item is null.

Thrown if the item's identity cannot be parsed as type T.

Applies to

TaskItem<T>(T)

Source:
TaskItem_T.cs

Initializes a new instance of TaskItem<T> from a strongly-typed value.

public:
 TaskItem(T value);
public TaskItem(T value);
new Microsoft.Build.Framework.TaskItem<'T> : 'T -> Microsoft.Build.Framework.TaskItem<'T>
Public Sub New (value As T)

Parameters

value
T

The value to wrap.

Applies to