Share via


TeamFoundationVersionControlService.QueryWorkspace Method (TeamFoundationRequestContext, String, String, Boolean)

Looks up a specific workspace. No wildcard characters or nulls are allowed.

Throws an exception if workspace not found.

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

Syntax

'Declaration
Public Function QueryWorkspace ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    ownerName As String, _
    useCache As Boolean _
) As Workspace

Parameters

  • workspaceName
    Type: System.String

    Name of workspace to look up.

  • useCache
    Type: System.Boolean

    Whether or not to potentially return a result from the AT in-memory cache.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Server.Workspace
The matching workspace.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

QueryWorkspace Overload

Microsoft.TeamFoundation.VersionControl.Server Namespace