共用方式為


Workspace.OnDocumentAdded(DocumentInfo) 方法

定義

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

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

參數

documentInfo
DocumentInfo

適用於