Export (0) Print
Expand All

Workspace.PendDelete Method (String[], RecursionType, LockLevel, Boolean, Boolean, String[], String[])

Queues files or folders for deletion from the repository and deletes them in the local workspace.

This method can recurse through the specified path to queue subitems in addition to the items matched by the specified path.

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

public int PendDelete(
	string[] paths,
	RecursionType recursion,
	LockLevel lockLevel,
	bool updateDisk,
	bool silent,
	string[] itemAttributeFilters,
	string[] itemPropertyFilters
)

Parameters

paths
Type: System.String[]

A list of paths, local or server, representing items to be deleted

recursion
Type: Microsoft.TeamFoundation.VersionControl.Client.RecursionType

recursion level

lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel

the lock level to apply to each item

updateDisk
Type: System.Boolean

Specifies whether the deleted files should be deleted on the local disk

silent
Type: System.Boolean

Specifies whether server should return get ops

itemAttributeFilters
Type: System.String[]

List of properties to return with get ops

itemPropertyFilters
Type: System.String[]

List of property filters.

Return Value

Type: System.Int32
The number of files or folders queued for deletion

Show:
© 2015 Microsoft