共用方式為


Compilation.WithReferences 方法

定義

多載

WithReferences(IEnumerable<MetadataReference>)

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

WithReferences(MetadataReference[])

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

WithReferences(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 ^ WithReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ newReferences);
public Microsoft.CodeAnalysis.Compilation WithReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> newReferences);
member this.WithReferences : seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.Compilation
Public Function WithReferences (newReferences As IEnumerable(Of MetadataReference)) As Compilation

參數

newReferences
IEnumerable<MetadataReference>

新的參考。

傳回

新的編譯。

適用於

WithReferences(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 ^ WithReferences(... cli::array <Microsoft::CodeAnalysis::MetadataReference ^> ^ newReferences);
public Microsoft.CodeAnalysis.Compilation WithReferences (params Microsoft.CodeAnalysis.MetadataReference[] newReferences);
member this.WithReferences : Microsoft.CodeAnalysis.MetadataReference[] -> Microsoft.CodeAnalysis.Compilation
Public Function WithReferences (ParamArray newReferences As MetadataReference()) As Compilation

參數

newReferences
MetadataReference[]

新的參考。

傳回

新的編譯。

適用於