共用方式為


IImportScope.Imports 屬性

定義

在此鏈結層級匯入的類型或命名空間。 這會對應至 using Namespace; C# 或 Visual Basic 中的 或 using static Type;Imports TypeOrNamespace 。 這將會包含這兩種語言的全域命名空間或類型匯入。

public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ImportedNamespaceOrType> Imports { get; }
member this.Imports : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ImportedNamespaceOrType>
Public ReadOnly Property Imports As ImmutableArray(Of ImportedNamespaceOrType)

屬性值

備註

Empty可能是 ,永遠不會是 IsDefault

適用於