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
'宣告
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.
- newPath
Type: System.String
The new path for the item.
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
- 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.