共用方式為


ImportedNamespaceOrType 結構

定義

表示 INamespaceOrTypeSymbol 已匯入的 ,以及匯入所在的位置。 這會對應至 using Namespace; C# 或 Visual Basic 中的 或 using static Type;Imports TypeOrNamespace

public readonly struct ImportedNamespaceOrType
type ImportedNamespaceOrType = struct
Public Structure ImportedNamespaceOrType
繼承
ImportedNamespaceOrType

屬性

DeclaringSyntaxReference

宣告指示詞或 Imports 子句的來源位置 using 。 針對專案層級匯入指示詞的 Visual Basic,或針對直接透過 Usings 提供的 C# 全域,可為 Null。

NamespaceOrType

表示 INamespaceOrTypeSymbol 已匯入的 ,以及匯入所在的位置。 這會對應至 using Namespace; C# 或 Visual Basic 中的 或 using static Type;Imports TypeOrNamespace

適用於