共用方式為


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>

傳回

適用於