Export (0) Print
Expand All

ProjectItem.Rename Method

Renames the item to the given name.

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

public void Rename(
	string name
)

Parameters

name
Type: System.String

The new name of the item.

Equivalent to setting the UnevaluatedInclude value. Generally, no evaluation occurs, because this could result in several items, which has no meaning in the context of renaming a single item. However if the item does not need to be split, and the new value evaluates to exactly one item, then its evaluated Include attribute is updated with the evaluated value.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft