IIndexWorkspaceService.GetDependentFilesAsync 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 dependent files on a file contained in our workspace
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>> GetDependentFilesAsync (string filePath, string target = default, string context = default, params int[] referenceTypes);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>> GetDependentFilesAsync (string filePath, string? target = default, string? context = default, params int[] referenceTypes);
abstract member GetDependentFilesAsync : string * string * string * int[] -> System.Threading.Tasks.Task<seq<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>>
Public Function GetDependentFilesAsync (filePath As String, Optional target As String = Nothing, Optional context As String = Nothing, ParamArray referenceTypes As Integer()) As Task(Of IEnumerable(Of FileReferenceResult))
Parameters
- filePath
- String
File entity path
- target
- String
Target for the reference (or null)
- context
- String
Context for the reference (or null)
- referenceTypes
- Int32[]
reference types
Returns
list of dependent files