Delen via


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.String

    Name of workspace to look up.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Server.Workspace

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace