Delen via


Repository.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
<WebMethodAttribute> _
Public Function QueryWorkspaces ( _
    ownerName As String, _
    computer As String, _
    permissionsFilter As Integer _
) As List(Of Workspace)
[WebMethodAttribute]
public List<Workspace> QueryWorkspaces(
    string ownerName,
    string computer,
    int permissionsFilter
)
[WebMethodAttribute]
public:
List<Workspace^>^ QueryWorkspaces(
    String^ ownerName, 
    String^ computer, 
    int permissionsFilter
)
[<WebMethodAttribute>]
member QueryWorkspaces : 
        ownerName:string * 
        computer:string * 
        permissionsFilter:int -> List<Workspace> 
public function QueryWorkspaces(
    ownerName : String, 
    computer : String, 
    permissionsFilter : int
) : List<Workspace>

Parameters

  • ownerName
    Type: System.String

    User name including domain or empty string to find all.

  • permissionsFilter
    Type: System.Int32

    Filters the result set to include only the Workspaces for which the AuthenticatedUser has the specified permissions.

Return Value

Type: System.Collections.Generic.List<Workspace>

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace