Project.AddMetadataReferences(IEnumerable<MetadataReference>) 方法

定义

创建更新此项目的新实例,以包含指定的元数据引用,以及现有的元数据引用。

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

参数

metadataReferences
IEnumerable<MetadataReference>

返回

适用于