共用方式為


Workspace.CheckAdditionalDocumentIsNotInCurrentSolution(DocumentId) 方法

定義

如果其他檔已經是目前解決方案的一部分,則會擲回例外狀況。

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

參數

documentId
DocumentId

適用於