共用方式為


Compilation.AddReferences 方法

定義

多載

AddReferences(MetadataReference[])

使用其他中繼資料參考建立新的編譯。

AddReferences(IEnumerable<MetadataReference>)

使用其他中繼資料參考建立新的編譯。

AddReferences(MetadataReference[])

Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs

使用其他中繼資料參考建立新的編譯。

public:
 Microsoft::CodeAnalysis::Compilation ^ AddReferences(... cli::array <Microsoft::CodeAnalysis::MetadataReference ^> ^ references);
public Microsoft.CodeAnalysis.Compilation AddReferences (params Microsoft.CodeAnalysis.MetadataReference[] references);
member this.AddReferences : Microsoft.CodeAnalysis.MetadataReference[] -> Microsoft.CodeAnalysis.Compilation
Public Function AddReferences (ParamArray references As MetadataReference()) As Compilation

參數

references
MetadataReference[]

新的參考。

傳回

新的編譯。

適用於

AddReferences(IEnumerable<MetadataReference>)

Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs

使用其他中繼資料參考建立新的編譯。

public:
 Microsoft::CodeAnalysis::Compilation ^ AddReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ references);
public Microsoft.CodeAnalysis.Compilation AddReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> references);
member this.AddReferences : seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.Compilation
Public Function AddReferences (references As IEnumerable(Of MetadataReference)) As Compilation

參數

references
IEnumerable<MetadataReference>

新的參考。

傳回

新的編譯。

適用於