共用方式為


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>

傳回

適用於