IIndexWorkspaceData.GetFileDataValuesAsync<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.
Return cached File Data value info
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileDataResult<T>>> GetFileDataValuesAsync<T> (string filePath, Guid type, string target = default, string context = default, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileDataResult<T>>> GetFileDataValuesAsync<T> (string filePath, Guid type, string? target = default, string? context = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileDataValuesAsync : string * Guid * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.VisualStudio.Workspace.Indexing.FileDataResult<'T>>>
Public Function GetFileDataValuesAsync(Of T) (filePath As String, type As Guid, Optional target As String = Nothing, Optional context As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of FileDataResult(Of T)))
Type Parameters
- T
Type of data expected
Parameters
- filePath
- String
File entity path
- type
- Guid
The type storage being used
- target
- String
Target for the reference (or null)
- context
- String
Context for the reference (or null)
- cancellationToken
- CancellationToken
Cancellation token
Returns
Completion task with results