Repository.QueryWorkspace Method
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
<WebMethodAttribute> _
Public Function QueryWorkspace ( _
workspaceName As String, _
ownerName As String _
) As Workspace
[WebMethodAttribute]
public Workspace QueryWorkspace(
string workspaceName,
string ownerName
)
[WebMethodAttribute]
public:
Workspace^ QueryWorkspace(
String^ workspaceName,
String^ ownerName
)
[<WebMethodAttribute>]
member QueryWorkspace :
workspaceName:string *
ownerName:string -> Workspace
public function QueryWorkspace(
workspaceName : String,
ownerName : String
) : Workspace
Parameters
workspaceName
Type: System.StringName of workspace to look up.
ownerName
Type: System.StringUser name including domain.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Server.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.