Solution.RemoveMetadataReference(ProjectId, MetadataReference) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Créez une instance de solution avec le projet spécifié pour ne plus inclure la référence de métadonnées spécifiée.
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
Paramètres
- projectId
- ProjectId
- metadataReference
- MetadataReference
Retours
Exceptions
metadataReference a la valeur null.
Le projet ne contient pas la référence spécifiée.