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

适用于