This documentation is archived and is not being maintained.

VersionControlServer.QueryWorkspaces Method

Gets a list of workspaces that matches the specified name, owner, and computer.

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

public Workspace[] QueryWorkspaces(
	string workspaceName,
	string workspaceOwner,
	string computer
)

Parameters

workspaceName
Type: System.String

The name of the workspace. Use null (Nothing in Visual Basic) to match all workspace names.

workspaceOwner
Type: System.String

The username of the owner. Use null (Nothing in Visual Basic) to match all workspace names.

computer
Type: System.String

The name of the host computer. Use null (Nothing in Visual Basic) to match all workspace names.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace[]
Returns an array of matching Workspace objects. If no workspaces match, the result is not an error, but an empty list.

Show: