Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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, _
lockLevel As LockLevel, _
updateDisk As Boolean, _
detectFolderAtTarget As Boolean, _
silent As Boolean _
) As Integer
public int PendRename(
string oldPath,
string newPath,
LockLevel lockLevel,
bool updateDisk,
bool detectFolderAtTarget,
bool silent
)
public:
int PendRename(
String^ oldPath,
String^ newPath,
LockLevel lockLevel,
bool updateDisk,
bool detectFolderAtTarget,
bool silent
)
member PendRename :
oldPath:string *
newPath:string *
lockLevel:LockLevel *
updateDisk:bool *
detectFolderAtTarget:bool *
silent:bool -> int
public function PendRename(
oldPath : String,
newPath : String,
lockLevel : LockLevel,
updateDisk : boolean,
detectFolderAtTarget : boolean,
silent : boolean
) : int
Parameters
oldPath
Type: System.StringThe current path to the item that is being renamed.
newPath
Type: System.StringThe new path for the item.
lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevelThe level of locking for the pending change.
updateDisk
Type: System.BooleanTrue to update the local disk according to the pending changes. False to preview the number of items that were changed but not modify the disk.
detectFolderAtTarget
Type: System.BooleanTrue to search for a local folder that exists at the target and notify the server. False not to search.
silent
Type: System.BooleanSpecifies whether the server should return Get operations.
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 have wildcard characters. If the target is an existing directory, the source will be moved to be a child of the target.
.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.