IIndexWorkspaceServiceHelper.GetValuesByNameAsync<T> 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.
Retrieve data value as Dictionary data
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,T>> GetValuesByNameAsync<T> (this Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService indexWorkspaceService, string filePath, Guid type, bool refreshOption = false, System.Threading.CancellationToken cancellationToken = default, string target = default, string context = default);
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,T?>> GetValuesByNameAsync<T> (this Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService indexWorkspaceService, string filePath, Guid type, bool refreshOption = false, System.Threading.CancellationToken cancellationToken = default, string? target = default, string? context = default);
static member GetValuesByNameAsync : Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService * string * Guid * bool * System.Threading.CancellationToken * string * string -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, 'T>>
<Extension()>
Public Function GetValuesByNameAsync(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, Optional context 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
- context
- String
Optional context
Returns
Dictionary with name/value