VersionSpec.AddDeletionModifierIfNecessary Method

Formats a path to include the deletion identifier if it is non-zero.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public static string AddDeletionModifierIfNecessary(
	string path,
	int deletionId
)

Parameters

path
Type: System.String

The path. path should not already include the deletion identifier.

deletionId
Type: System.Int32

The deletion id.

Return Value

Type: System.String
Returns a string which represents the original path, potentially with a formatted deletion modifier added.

Community Additions

ADD
Show: