IIndexWorkspaceServiceHelper.GetValuesByContextAsync<T>(IIndexWorkspaceService, String, Guid, Boolean, CancellationToken, String) Methode

Definition

Abrufen von Datenwerten als Wörterbuch unter Verwendung des Kontexts als Schlüssel

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

Typparameter

T

Typ des erwarteten Werts

Parameter

indexWorkspaceService
IIndexWorkspaceService

Der Index Dienst

filePath
String

Dateipfad

type
Guid

GUID-Typ des Werts

refreshOption
Boolean

Aktualisierungs Option

cancellationToken
CancellationToken

Abbruchtoken

target
String

Optionales Ziel

Gibt zurück

Task<IReadOnlyDictionary<String,T>>

Wörterbuch mit Name/Wert

Gilt für