TeamFoundationVersionControlService.QueryWorkspaces Method

Searches for a workspace with the given owner and computer.

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

Syntax

'Declaration
Public Function QueryWorkspaces ( _
    requestContext As TeamFoundationRequestContext, _
    ownerName As String, _
    computer As String, _
    permissionsFilter As Integer _
) As List(Of Workspace)
public List<Workspace> QueryWorkspaces(
    TeamFoundationRequestContext requestContext,
    string ownerName,
    string computer,
    int permissionsFilter
)
public:
List<Workspace^>^ QueryWorkspaces(
    TeamFoundationRequestContext^ requestContext, 
    String^ ownerName, 
    String^ computer, 
    int permissionsFilter
)
member QueryWorkspaces : 
        requestContext:TeamFoundationRequestContext * 
        ownerName:string * 
        computer:string * 
        permissionsFilter:int -> List<Workspace> 
public function QueryWorkspaces(
    requestContext : TeamFoundationRequestContext, 
    ownerName : String, 
    computer : String, 
    permissionsFilter : int
) : List<Workspace>

Parameters

  • ownerName
    Type: System.String

    User name including domain or empty string to find all.

  • computer
    Type: System.String

    The name of the host computer or null for all computers.

  • permissionsFilter
    Type: System.Int32

    Filters the result set to include only the workspaces for which the user associated with the request context has the specified permissions.

Return Value

Type: System.Collections.Generic.List<Workspace>
An array of matching workspaces.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace