Project.WithMetadataReferences(IEnumerable<MetadataReference>) 方法

定义

创建更新此项目的新实例,以将现有元数据引用替换为指定的元数据引用。

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

参数

metadataReferences
IEnumerable<MetadataReference>

返回

适用于