This documentation is archived and is not being maintained.
VersionControlServer.QueryWorkspaces Method (String, String, String, WorkspacePermissions)
Visual Studio 2013
Gets an array of Workspace objects that match the specified name, owner, computer, or any combination of these criteria. Also allows filtering by permission.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
'Declaration Public Function QueryWorkspaces ( _ workspaceName As String, _ workspaceOwner As String, _ computer As String, _ permissionsFilter As WorkspacePermissions _ ) As Workspace()
Parameters
- workspaceName
- Type: System.String
The name of the workspace, or null for all workspace names.
- workspaceOwner
- Type: System.String
The user name of the owner, or null for all users.
- computer
- Type: System.String
The name of the host computer, or null for all computers.
- permissionsFilter
- Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspacePermissions
WorkspacePermissions to use to filter by the authorization level. Specify NoneOrNotSupported to not use permission filtering.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace()An array of Workspace objects that match the specified filters.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: