This method starts with a local path and finds a workspace that contains a mapping to that path. Workspace mappings are recursive: if you pass C:\code\CmdLine and no explicit mapping for C:\code\CmdLine is found, Team Foundation Server will search for a mapping to C:\code and then C:\. The search is restricted to mappings for the current user on the current computer.
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
- Type: System.String
The local path for which you want to create a workspace.
Return ValueType: Microsoft.TeamFoundation.VersionControl.Client.Workspace
Returns a reference to the Workspace object that has mapped the specified local path. If no workspace is found, this method returns null. If you want to throw an exception instead, you can use the GetWorkspace method.
This is similar to GetWorkspace. However, if the path is not in any known local workspace, returns null instead of throwing an exception.
- 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.