共用方式為


VisualBasicCompilation.WithReferences 方法

定義

多載

WithReferences(MetadataReference[])
WithReferences(IEnumerable<MetadataReference>)

使用指定的參考建立新的編譯。

WithReferences(MetadataReference[])

Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
public:
 Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilation ^ WithReferences(... cli::array <Microsoft::CodeAnalysis::MetadataReference ^> ^ newReferences);
public Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation WithReferences (params Microsoft.CodeAnalysis.MetadataReference[] newReferences);
override this.WithReferences : Microsoft.CodeAnalysis.MetadataReference[] -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation
Public Function WithReferences (ParamArray newReferences As MetadataReference()) As VisualBasicCompilation

參數

newReferences
MetadataReference[]

傳回

適用於

WithReferences(IEnumerable<MetadataReference>)

Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb
Source:
VisualBasicCompilation.vb

使用指定的參考建立新的編譯。

public:
 Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilation ^ WithReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ newReferences);
public Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation WithReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> newReferences);
override this.WithReferences : seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation
Public Function WithReferences (newReferences As IEnumerable(Of MetadataReference)) As VisualBasicCompilation

參數

傳回

備註

新的 VisualBasicCompilation 會在需要時立即查詢為基礎中繼資料指定的 MetadataReference

新的編譯會使用 目前由 MetadataReference 提供的任何中繼資料。 例如,如果目前的編譯參考自建立編譯後已變更的中繼資料檔案,則新的編譯將使用更新的版本,而目前的編譯將會使用先前的 (它不會變更) 。

適用於