Compartir a través de


PathUtilities.ConvertLocalPathToSharedUri Method

Definition

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

Uri

The result uri, or null, if the file path is not shared between two sides.

Applies to