Workspace.CheckDocumentIsNotInCurrentSolution(DocumentId) 方法

定义

如果文档已是当前解决方案的一部分,则引发异常。

protected:
 void CheckDocumentIsNotInCurrentSolution(Microsoft::CodeAnalysis::DocumentId ^ documentId);
protected void CheckDocumentIsNotInCurrentSolution (Microsoft.CodeAnalysis.DocumentId documentId);
member this.CheckDocumentIsNotInCurrentSolution : Microsoft.CodeAnalysis.DocumentId -> unit
Protected Sub CheckDocumentIsNotInCurrentSolution (documentId As DocumentId)

参数

documentId
DocumentId

适用于