Solution.RemoveMetadataReference(ProjectId, MetadataReference) メソッド

定義

指定したメタデータ参照を含めなくなったプロジェクトを更新して、新しいソリューション インスタンスを作成します。

public:
 Microsoft::CodeAnalysis::Solution ^ RemoveMetadataReference(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::MetadataReference ^ metadataReference);
public Microsoft.CodeAnalysis.Solution RemoveMetadataReference (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.MetadataReference metadataReference);
member this.RemoveMetadataReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.MetadataReference -> Microsoft.CodeAnalysis.Solution
Public Function RemoveMetadataReference (projectId As ProjectId, metadataReference As MetadataReference) As Solution

パラメーター

projectId
ProjectId
metadataReference
MetadataReference

戻り値

例外

metadataReferencenullです。

プロジェクトに指定された参照が含まれていません。

適用対象