Workspace.PendUndelete Method (String, Int32, String, LockLevel, Boolean, Boolean)
Queues files or folders for undeletion from the database and optionally restores them in the current workspace.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function PendUndelete ( _
path As String, _
deletionId As Integer, _
newPath As String, _
lockLevel As LockLevel, _
updateDisk As Boolean, _
detectFolderAtTarget As Boolean _
) As Integer
'Usage
Dim instance As Workspace
Dim path As String
Dim deletionId As Integer
Dim newPath As String
Dim lockLevel As LockLevel
Dim updateDisk As Boolean
Dim detectFolderAtTarget As Boolean
Dim returnValue As Integer
returnValue = instance.PendUndelete(path, _
deletionId, newPath, lockLevel, updateDisk, _
detectFolderAtTarget)
public int PendUndelete(
string path,
int deletionId,
string newPath,
LockLevel lockLevel,
bool updateDisk,
bool detectFolderAtTarget
)
public:
int PendUndelete(
String^ path,
int deletionId,
String^ newPath,
LockLevel lockLevel,
bool updateDisk,
bool detectFolderAtTarget
)
public function PendUndelete(
path : String,
deletionId : int,
newPath : String,
lockLevel : LockLevel,
updateDisk : boolean,
detectFolderAtTarget : boolean
) : int
Parameters
path
Type: System.StringThe item or items to undelete. Wildcard characters are allowed, and both server and local paths are allowed.
deletionId
Type: System.Int32Deletion ID for the item to undelete.
newPath
Type: System.StringOptional new path for the item to undelete.
lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevelThe lock level to apply to each item.
updateDisk
Type: System.BooleanFor undelete, whether to retrieve undeleted items from the database and create directories on the local disk; when false, the local disk is not changed.
detectFolderAtTarget
Type: System.BooleanIf true, look for a local folder existing at the target and tell the server if that is the case; otherwise, do not check.
Return Value
Type: System.Int32
The number of pending changes.
.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.