Partager via


VersionControlServer.DeleteWorkspace Method

Deletes the Shelveset that has the specified name and owner.

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

Syntax

'Déclaration
Public Function DeleteWorkspace ( _
    workspaceName As String, _
    workspaceOwner As String _
) As Boolean
public bool DeleteWorkspace(
    string workspaceName,
    string workspaceOwner
)
public:
bool DeleteWorkspace(
    String^ workspaceName, 
    String^ workspaceOwner
)
member DeleteWorkspace : 
        workspaceName:string * 
        workspaceOwner:string -> bool 
public function DeleteWorkspace(
    workspaceName : String, 
    workspaceOwner : String
) : boolean

Parameters

Return Value

Type: System.Boolean
True if the workspace was deleted. False if it was canceled.

Remarks

Throws an exception if the request fails on the server.

.NET Framework Security

See Also

Reference

VersionControlServer Class

Microsoft.TeamFoundation.VersionControl.Client Namespace