VersionSpec.AddDeletionModifierIfNecessary Method (String, Int32)
Formats a path to include the deletion ID if it is nonzero.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Shared Function AddDeletionModifierIfNecessary ( _
path As String, _
deletionId As Integer _
) As String
public static string AddDeletionModifierIfNecessary(
string path,
int deletionId
)
public:
static String^ AddDeletionModifierIfNecessary(
String^ path,
int deletionId
)
static member AddDeletionModifierIfNecessary :
path:string *
deletionId:int -> string
public static function AddDeletionModifierIfNecessary(
path : String,
deletionId : int
) : String
Parameters
path
Type: System.StringThe path.
deletionId
Type: System.Int32The deletion ID.
Return Value
Type: System.String
A string that represents the path that has a formatted deletion modifier added, if it is nonzero.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.