This documentation is archived and is not being maintained.
VersionControlServer.TryGetWorkspace Method
Visual Studio 2013
Gets the workspace that is mapped to the specified local path. Does not throw an exception.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
'Declaration Public Function TryGetWorkspace ( _ localPath As String _ ) As Workspace
Parameters
- localPath
- Type: System.String
The local path of the desired workspace.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceThe workspace object that is associated with the specified local path. Null if a workspace is not found.
- 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.
Show: