IOpenDocumentService.OpenDocumentWithEditorSelectionAsync 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.
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.