IIndexWorkspaceService.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 a enumerable of data from a File system entity
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileDataResult<T>>> GetFileDataValuesAsync<T> (string filePath, Guid type, bool refreshOption = false, System.Threading.CancellationToken cancellationToken = default, string target = default, string context = default);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileDataResult<T>>> GetFileDataValuesAsync<T> (string filePath, Guid type, bool refreshOption = false, System.Threading.CancellationToken cancellationToken = default, string? target = default, string? context = default);
abstract member GetFileDataValuesAsync : string * Guid * bool * System.Threading.CancellationToken * string * string -> System.Threading.Tasks.Task<seq<Microsoft.VisualStudio.Workspace.Indexing.FileDataResult<'T>>>
Public Function GetFileDataValuesAsync(Of T) (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 IEnumerable(Of FileDataResult(Of T)))
Type Parameters
- T
Type of Value being expected
Parameters
- filePath
- String
File entity path
- type
- Guid
The type of data being retrieved
- refreshOption
- Boolean
Refresh option
- cancellationToken
- CancellationToken
Cancellation token
- target
- String
Target for the reference (or null)
- context
- String
Context for the reference (or null)
Returns
Collection of data