SymbolFinder.FindDerivedInterfacesAsync 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.
Finds the derived interfaces of the given interfaces.
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.INamedTypeSymbol>> FindDerivedInterfacesAsync (Microsoft.CodeAnalysis.INamedTypeSymbol type, Microsoft.CodeAnalysis.Solution solution, bool transitive = true, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> projects = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.INamedTypeSymbol>> FindDerivedInterfacesAsync (Microsoft.CodeAnalysis.INamedTypeSymbol type, Microsoft.CodeAnalysis.Solution solution, bool transitive = true, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project>? projects = default, System.Threading.CancellationToken cancellationToken = default);
static member FindDerivedInterfacesAsync : Microsoft.CodeAnalysis.INamedTypeSymbol * Microsoft.CodeAnalysis.Solution * bool * System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.INamedTypeSymbol>>
Public Shared Function FindDerivedInterfacesAsync (type As INamedTypeSymbol, solution As Solution, Optional transitive As Boolean = true, Optional projects As IImmutableSet(Of Project) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of INamedTypeSymbol))
Parameters
- type
- INamedTypeSymbol
The symbol to find derived types of.
- solution
- Solution
The solution to search in.
- transitive
- Boolean
If the search should stop at immediately derived interfaces, or should continue past that.
- projects
- IImmutableSet<Project>
The projects to search. Can be null to search the entire solution.
- cancellationToken
- CancellationToken
Returns
The derived interfaces of the symbol. The symbol passed in is not included in this list.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for