CompilationUnitSyntax.Imports Property

Definition

Represents the list of Imports statements at the beginning of a source file.

public:
 property Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsStatementSyntax ^> Imports { Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsStatementSyntax ^> get(); };
public Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax> Imports { get; }
member this.Imports : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax>
Public ReadOnly Property Imports As SyntaxList(Of ImportsStatementSyntax)

Property Value

Remarks

If nothing is present, an empty list is returned.

Applies to