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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
ownerName
Type: System.StringUser name including domain or empty string to find all.
computer
Type: System.StringThe name of the host computer or null for all computers.
permissionsFilter
Type: System.Int32Filters 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
- 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.