共用方式為


VisualBasicExtensions.MemberImports(Compilation) 方法

定義

取得編譯 MemberImports 屬性。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::INamespaceOrTypeSymbol ^> MemberImports(Microsoft::CodeAnalysis::Compilation ^ compilation);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.INamespaceOrTypeSymbol> MemberImports (this Microsoft.CodeAnalysis.Compilation compilation);
static member MemberImports : Microsoft.CodeAnalysis.Compilation -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.INamespaceOrTypeSymbol>
<Extension()>
Public Function MemberImports (compilation As Compilation) As ImmutableArray(Of INamespaceOrTypeSymbol)

參數

compilation
Compilation

來源編譯物件。

傳回

NamespaceOrTypeSymbol 的 ImmutableArray,來自編譯實例 MemberImports 屬性;否則,如果編譯實例為 Null,則為空的 ImmutableArray。

適用於