VisualBasicCompilation.WithReferences 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
參數
- newReferences
- IEnumerable<MetadataReference>
傳回
備註
新的 VisualBasicCompilation 會在需要時立即查詢為基礎中繼資料指定的 MetadataReference 。
新的編譯會使用 目前由 MetadataReference 提供的任何中繼資料。 例如,如果目前的編譯參考自建立編譯後已變更的中繼資料檔案,則新的編譯將使用更新的版本,而目前的編譯將會使用先前的 (它不會變更) 。