Initializes a new OnlyOneWorkspaceException instance.
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Sub New ( _
    workspace As Workspace, _
    dirName As String _
)
public OnlyOneWorkspaceException(
    Workspace workspace,
    string dirName
)
public:
OnlyOneWorkspaceException(
    Workspace^ workspace, 
    String^ dirName
)
new : 
        workspace:Workspace * 
        dirName:string -> OnlyOneWorkspaceException
public function OnlyOneWorkspaceException(
    workspace : Workspace, 
    dirName : String
)
Parameters
- workspace 
 Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace- The workspace that threw the exception. 
- dirName 
 Type: System.String- The directory that contains the 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.
See Also
Reference
OnlyOneWorkspaceException Class