共用方式為


Workspace.PendRename Method (String, String)

Moves or renames a file or directory.

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

Syntax

'Declaration
Public Function PendRename ( _
    oldPath As String, _
    newPath As String _
) As Integer
public int PendRename(
    string oldPath,
    string newPath
)
public:
int PendRename(
    String^ oldPath, 
    String^ newPath
)
member PendRename : 
        oldPath:string * 
        newPath:string -> int
public function PendRename(
    oldPath : String, 
    newPath : String
) : int

Parameters

  • oldPath
    Type: System.String

    The current path to the item that is being moved or renamed.

Return Value

Type: System.Int32
The number of items that were moved or renamed.

Remarks

The oldPath parameter may contain wildcard characters if the target is a directory. The newPath parameter cannot contain wildcard characters. If the target is an existing directory, the source will become a child of the target.

.NET Framework Security

See Also

Reference

Workspace Class

PendRename Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace