共用方式為


Workspace.OnAdditionalDocumentAdded(DocumentInfo) 方法

定義

將其他檔新增至主環境中的專案時,請呼叫這個方法。

protected public:
 void OnAdditionalDocumentAdded(Microsoft::CodeAnalysis::DocumentInfo ^ documentInfo);
protected internal void OnAdditionalDocumentAdded (Microsoft.CodeAnalysis.DocumentInfo documentInfo);
member this.OnAdditionalDocumentAdded : Microsoft.CodeAnalysis.DocumentInfo -> unit
Protected Friend Sub OnAdditionalDocumentAdded (documentInfo As DocumentInfo)

參數

documentInfo
DocumentInfo

適用於