CSharpCompilation.WithReferences 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WithReferences(IEnumerable<MetadataReference>) |
使用指定的引用创建新的编译。 |
WithReferences(MetadataReference[]) |
使用指定的引用创建新的编译。 |
WithReferences(IEnumerable<MetadataReference>)
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
使用指定的引用创建新的编译。
public:
Microsoft::CodeAnalysis::CSharp::CSharpCompilation ^ WithReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ references);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation WithReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> references);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation WithReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference>? references);
override this.WithReferences : seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.CSharp.CSharpCompilation
Public Function WithReferences (references As IEnumerable(Of MetadataReference)) As CSharpCompilation
参数
- references
- IEnumerable<MetadataReference>
返回
注解
新 CSharpCompilation 项将根据需要立即查询给定 MetadataReference 的基础元数据。
新编译使用当前提供 MetadataReference的任何元数据。 例如,如果当前编译引用自创建编译以来已更改的元数据文件,则新编译将使用更新的版本,而当前编译将使用以前的 (它不会更改) 。
适用于
WithReferences(MetadataReference[])
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
- Source:
- CSharpCompilation.cs
使用指定的引用创建新的编译。
public:
Microsoft::CodeAnalysis::CSharp::CSharpCompilation ^ WithReferences(... cli::array <Microsoft::CodeAnalysis::MetadataReference ^> ^ references);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation WithReferences (params Microsoft.CodeAnalysis.MetadataReference[] references);
override this.WithReferences : Microsoft.CodeAnalysis.MetadataReference[] -> Microsoft.CodeAnalysis.CSharp.CSharpCompilation
Public Function WithReferences (ParamArray references As MetadataReference()) As CSharpCompilation
参数
- references
- MetadataReference[]