Compartir a través de


Workspace.PendRename Method (String, String, LockLevel, Boolean, Boolean)

Moves or renames a file or directory.

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

Syntax

'Declaración
Public Function PendRename ( _
    oldPath As String, _
    newPath As String, _
    lockLevel As LockLevel, _
    updateDisk As Boolean, _
    detectFolderAtTarget As Boolean _
) As Integer
public int PendRename(
    string oldPath,
    string newPath,
    LockLevel lockLevel,
    bool updateDisk,
    bool detectFolderAtTarget
)
public:
int PendRename(
    String^ oldPath, 
    String^ newPath, 
    LockLevel lockLevel, 
    bool updateDisk, 
    bool detectFolderAtTarget
)
member PendRename : 
        oldPath:string * 
        newPath:string * 
        lockLevel:LockLevel * 
        updateDisk:bool * 
        detectFolderAtTarget:bool -> int 
public function PendRename(
    oldPath : String, 
    newPath : String, 
    lockLevel : LockLevel, 
    updateDisk : boolean, 
    detectFolderAtTarget : boolean
) : int

Parameters

  • oldPath
    Type: System.String
    The current path to the item being renamed.
  • updateDisk
    Type: System.Boolean
    True to update the local disk according to the pending changes. False to not modify disk (will only preview the number of items changed).
  • detectFolderAtTarget
    Type: System.Boolean
    True to search for a local folder existing at the target and notify the server. False to not search.

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