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>

新引用。

返回

新的编译。

适用于