GetInboundReferences(IDeclaration, IntrospectionChildKinds, CancellationToken)
Gets inbound declaration references, i.e. the list of declarations that use the given declaration, in the projects loaded in the current Workspace.
Declaration
public static IEnumerable<IIntrospectionReference> GetInboundReferences(this IDeclaration declaration, IntrospectionChildKinds childKinds = IntrospectionChildKinds.ContainingDeclaration, CancellationToken cancellationToken = default)Parameters
| Type | Name | Description |
|---|---|---|
| IDeclaration | declaration | The declaration to get inbound references for. |
| IntrospectionChildKinds | childKinds | Specifies which kinds of child declarations to include. |
| CancellationToken | cancellationToken | A cancellation token. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IIntrospectionReference> | An enumerable of inbound references. |