Condividi tramite


TaskItem.Explicit(TaskItem to String) Operator

Definition

This allows an explicit typecast from a "TaskItem" to a "string", returning the escaped ItemSpec for this item.

public:
 static explicit operator System::String ^(Microsoft::Build::Utilities::TaskItem ^ taskItemToCast);
public static explicit operator string (Microsoft.Build.Utilities.TaskItem taskItemToCast);
static member op_Explicit : Microsoft.Build.Utilities.TaskItem -> string
Public Shared Narrowing Operator CType (taskItemToCast As TaskItem) As String

Parameters

taskItemToCast
TaskItem

The item to operate on.

Returns

The item-spec of the item.

Remarks

The equivalent method for this operator is TaskItem.ToString()

Applies to