ImportedNamespaceOrType.DeclaringSyntaxReference Property

Definition

Location in source where the using directive or Imports clause was declared. May be null for Visual Basic for a project-level import directive, or for a C# global using provided directly through Usings.

public Microsoft.CodeAnalysis.SyntaxReference? DeclaringSyntaxReference { get; }
member this.DeclaringSyntaxReference : Microsoft.CodeAnalysis.SyntaxReference
Public ReadOnly Property DeclaringSyntaxReference As SyntaxReference

Property Value

Applies to