Bagikan melalui


Solution.RemoveProjectReference(ProjectId, ProjectReference) Metode

Definisi

Buat instans solusi baru dengan proyek yang ditentukan diperbarui untuk tidak lagi menyertakan referensi proyek yang ditentukan.

public:
 Microsoft::CodeAnalysis::Solution ^ RemoveProjectReference(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::ProjectReference ^ projectReference);
public Microsoft.CodeAnalysis.Solution RemoveProjectReference(Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.ProjectReference projectReference);
member this.RemoveProjectReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.ProjectReference -> Microsoft.CodeAnalysis.Solution
Public Function RemoveProjectReference (projectId As ProjectId, projectReference As ProjectReference) As Solution

Parameter

projectId
ProjectId
projectReference
ProjectReference

Mengembalikan

Pengecualian

projectReferenceadalah null.

Solusinya tidak berisi projectId.

Berlaku untuk