Compartilhar via


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

'Declaração
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 being renamed.

Return Value

Type: System.Int32
The number of items renamed.

Remarks

The oldPath may contain wildcards if the target is a directory. The newPath may never have wildcards. If the target is an existing directory, the source will be moved to be a child of the target.

.NET Framework Security

See Also

Reference

Workspace Class

PendRename Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace