PathUtilities.ConvertLocalPathToSharedUri Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convert a server side local path to a vsls form shared Uri path. Note: this function only works when the query is coming from a remote LiveShare connection.
public static Uri? ConvertLocalPathToSharedUri (this Microsoft.VisualStudio.ProjectSystem.Query.Execution.IQueryExecutionContext executionContext, string localPath);
static member ConvertLocalPathToSharedUri : Microsoft.VisualStudio.ProjectSystem.Query.Execution.IQueryExecutionContext * string -> Uri
<Extension()>
Public Function ConvertLocalPathToSharedUri (executionContext As IQueryExecutionContext, localPath As String) As Uri
Parameters
- executionContext
- IQueryExecutionContext
The context carries LiveShare connection information.
- localPath
- String
A local file path.
Returns
The result uri, or null, if the file path is not shared between two sides.