TeamFoundationVersionControlService.QueryWorkspace Method (TeamFoundationRequestContext, String, String, Boolean, Boolean, 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, _
hideLocalWorkspaces As Boolean, _
hideWorkspaceWithOptions As Boolean _
) As Workspace
public Workspace QueryWorkspace(
TeamFoundationRequestContext requestContext,
string workspaceName,
string ownerName,
bool useCache,
bool hideLocalWorkspaces,
bool hideWorkspaceWithOptions
)
public:
Workspace^ QueryWorkspace(
TeamFoundationRequestContext^ requestContext,
String^ workspaceName,
String^ ownerName,
bool useCache,
bool hideLocalWorkspaces,
bool hideWorkspaceWithOptions
)
member QueryWorkspace :
requestContext:TeamFoundationRequestContext *
workspaceName:string *
ownerName:string *
useCache:bool *
hideLocalWorkspaces:bool *
hideWorkspaceWithOptions:bool -> Workspace
public function QueryWorkspace(
requestContext : TeamFoundationRequestContext,
workspaceName : String,
ownerName : String,
useCache : boolean,
hideLocalWorkspaces : boolean,
hideWorkspaceWithOptions : boolean
) : Workspace
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
workspaceName
Type: System.StringName of workspace to look up.
ownerName
Type: System.StringUser name including domain.
useCache
Type: System.BooleanWhether or not to potentially return a result from the AT in-memory cache.
hideLocalWorkspaces
Type: System.BooleanSpecify true to pretend that local workspaces do not exist (for downlevel clients).
- hideWorkspaceWithOptions
Type: System.Boolean
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.