VersionControlServer.QueryWorkspaces Method (String, String, String, WorkspacePermissions)

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)

Syntax

'宣言
Public Function QueryWorkspaces ( _
    workspaceName As String, _
    workspaceOwner As String, _
    computer As String, _
    permissionsFilter As WorkspacePermissions _
) As Workspace()
public Workspace[] QueryWorkspaces(
    string workspaceName,
    string workspaceOwner,
    string computer,
    WorkspacePermissions permissionsFilter
)
public:
array<Workspace^>^ QueryWorkspaces(
    String^ workspaceName, 
    String^ workspaceOwner, 
    String^ computer, 
    WorkspacePermissions permissionsFilter
)
member QueryWorkspaces : 
        workspaceName:string * 
        workspaceOwner:string * 
        computer:string * 
        permissionsFilter:WorkspacePermissions -> Workspace[] 
public function QueryWorkspaces(
    workspaceName : String, 
    workspaceOwner : String, 
    computer : String, 
    permissionsFilter : WorkspacePermissions
) : 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.

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Client.Workspace[]
An array of Workspace objects that match the specified filters.

.NET Framework Security

See Also

Reference

VersionControlServer Class

QueryWorkspaces Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace