共用方式為


Repository.DeleteWorkspace Method

Deletes the specified workspace. All pending changes are canceled and all LocalVersion entries are removed from the server.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Sub DeleteWorkspace ( _
    workspaceName As String, _
    ownerName As String _
)
[WebMethodAttribute]
public void DeleteWorkspace(
    string workspaceName,
    string ownerName
)
[WebMethodAttribute]
public:
void DeleteWorkspace(
    String^ workspaceName, 
    String^ ownerName
)
[<WebMethodAttribute>]
member DeleteWorkspace : 
        workspaceName:string * 
        ownerName:string -> unit
public function DeleteWorkspace(
    workspaceName : String, 
    ownerName : String
)

Parameters

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace