Solution.RemoveProjectReference(ProjectId, ProjectReference) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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.