Export (0) Print
Expand All
Expand Minimize

VersionControlServer.DeleteWorkspace Method

Deletes the workspace with the specified name and owner.

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

public bool DeleteWorkspace(
	string workspaceName,
	string workspaceOwner
)

Parameters

workspaceName
Type: System.String

The name of the workspace to delete.

workspaceOwner
Type: System.String

The owner of the workspace that you want to delete. You must use the string constant RepositoryConstants.AuthenticatedUser or "." to default to the current user.

Return Value

Type: System.Boolean
Returns true if the workspace was deleted and false if the operation was canceled. If the request fails on the server, an exception occurs.

Throws an exception if the delete request failed on the server.

Community Additions

ADD
Show:
© 2014 Microsoft