Compartir a través de


ExtensionMethods.GetSelectedPathAsync Method

Definition

Gets the selected item path on the local machine from the current workspace tree.

public static System.Threading.Tasks.Task<Uri> GetSelectedPathAsync (this Microsoft.VisualStudio.Extensibility.IClientContext clientContext, System.Threading.CancellationToken cancellationToken);
static member GetSelectedPathAsync : Microsoft.VisualStudio.Extensibility.IClientContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
<Extension()>
Public Function GetSelectedPathAsync (clientContext As IClientContext, cancellationToken As CancellationToken) As Task(Of Uri)

Parameters

clientContext
IClientContext

Client context to utilize.

cancellationToken
CancellationToken

Cancellation token to monitor,.

Returns

A collection of workspace item monikers that can be used across workspace queries.

Applies to