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 _
) As Workspace
public Workspace QueryWorkspace(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string ownerName
)
public:
Workspace^ QueryWorkspace(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ ownerName
)
member QueryWorkspace : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        ownerName:string -> Workspace
public function QueryWorkspace(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    ownerName : String
) : Workspace
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- workspaceName 
 Type: System.String- Name of workspace to look up. 
- ownerName 
 Type: System.String- User name including domain. 
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Server.Workspace
The matching workspace.
.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.