Share via


IIndexWorkspaceServiceHelper.GetValuesByContextAsync<T> Method

Definition

Retrieve data values as Dictionary using the context as the key

public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,T>> GetValuesByContextAsync<T> (this Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService indexWorkspaceService, string filePath, Guid type, bool refreshOption = false, System.Threading.CancellationToken cancellationToken = default, string target = default);
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,T?>> GetValuesByContextAsync<T> (this Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService indexWorkspaceService, string filePath, Guid type, bool refreshOption = false, System.Threading.CancellationToken cancellationToken = default, string? target = default);
static member GetValuesByContextAsync : Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService * string * Guid * bool * System.Threading.CancellationToken * string -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, 'T>>
<Extension()>
Public Function GetValuesByContextAsync(Of T) (indexWorkspaceService As IIndexWorkspaceService, filePath As String, type As Guid, Optional refreshOption As Boolean = false, Optional cancellationToken As CancellationToken = Nothing, Optional target As String = Nothing) As Task(Of IReadOnlyDictionary(Of String, T))

Type Parameters

T

Type of value to expect

Parameters

indexWorkspaceService
IIndexWorkspaceService

The index service

filePath
String

File path

type
Guid

Guid type of value

refreshOption
Boolean

Refresh option

cancellationToken
CancellationToken

Cancellation token

target
String

Optional target

Returns

Dictionary with name/value

Applies to