共用方式為


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

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

See Also

Reference

VersionSpec Class

AddDeletionModifierIfNecessary Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace