ExtensionMethods.GetSelectedPathAsync 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.
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.