SymbolFinder.FindDerivedInterfacesAsync Method

Definition

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