Aracılığıyla paylaş


Workspace.CheckProjectDoesNotHaveMetadataReference Method

Definition

Throws an exception if a project already has a specific metadata reference.

protected:
 void CheckProjectDoesNotHaveMetadataReference(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::MetadataReference ^ metadataReference);
protected void CheckProjectDoesNotHaveMetadataReference (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.MetadataReference metadataReference);
member this.CheckProjectDoesNotHaveMetadataReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.MetadataReference -> unit
Protected Sub CheckProjectDoesNotHaveMetadataReference (projectId As ProjectId, metadataReference As MetadataReference)

Parameters

projectId
ProjectId
metadataReference
MetadataReference

Applies to