IOpenDocumentService.OpenDocumentWithEditorSelectionAsync Method

Definition

Opens document at the given local file path with an editor selected by the user. If the path represents local file path of a remote file and can be converted to remote URI via ConvertLocalUriToRemoteUriAsync(Uri, CancellationToken), the remote file will be downloaded and opened.

public:
 System::Threading::Tasks::Task ^ OpenDocumentWithEditorSelectionAsync(System::String ^ path, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task OpenDocumentWithEditorSelectionAsync (string path, System.Threading.CancellationToken cancellationToken);
abstract member OpenDocumentWithEditorSelectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function OpenDocumentWithEditorSelectionAsync (path As String, cancellationToken As CancellationToken) As Task

Parameters

path
String

The local file path to the document to open. If the path represents local file path of a remote file and can be converted to remote URI via ConvertLocalUriToRemoteUriAsync(Uri, CancellationToken), the remote file will be downloaded and opened.

cancellationToken
CancellationToken

A cancellation token.

Returns

A task representing the user selection and opening of a document editor.

Applies to