IIndexWorkspaceServiceHelper.GetValuesByContextAsync<T>(IIndexWorkspaceService, String, Guid, Boolean, CancellationToken, String) Método

Definição

Recuperar valores de dados como dicionário usando o contexto como a chave

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))

Parâmetros de tipo

T

Tipo de valor a ser esperado

Parâmetros

indexWorkspaceService
IIndexWorkspaceService

O serviço de índice

filePath
String

Caminho do arquivo

type
Guid

Tipo de GUID do valor

refreshOption
Boolean

Opção de atualização

cancellationToken
CancellationToken

Token de cancelamento

target
String

Destino opcional

Retornos

Task<IReadOnlyDictionary<String,T>>

Dicionário com nome/valor

Aplica-se a