共用方式為


IQuerySessionContext.ConvertLocalPathToSharedUri(String) Method

Definition

Converts a server local path to a live share Uri.

public Uri? ConvertLocalPathToSharedUri (string localPath);
abstract member ConvertLocalPathToSharedUri : string -> Uri
Public Function ConvertLocalPathToSharedUri (localPath As String) As Uri

Parameters

localPath
String

A local file/directory path.

Returns

Uri

Converted URI suitable for sharing between hosts and guests, or null if the path could not be converted, possibly because the path is outside one of the shared roots.

Applies to