IImportScope.Imports Property

Definition

Types or namespaces imported at this level of the chain. This corresponds to using Namespace; or using static Type; in C#, or Imports TypeOrNamespace in Visual Basic. This will include global namespace or type imports for both languages.

C#
public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ImportedNamespaceOrType> Imports { get; }

Property Value

Remarks

May be Empty, will never be IsDefault.

Applies to

Produkt Versioner
Roslyn 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0