Workspace.ApplyAdditionalDocumentAdded(DocumentInfo, SourceText) 方法

定义

此方法是在向项目添加新文档的过程中 TryApplyChanges(Solution) 调用的。

重写此方法以实现添加其他文档的功能。

protected:
 virtual void ApplyAdditionalDocumentAdded(Microsoft::CodeAnalysis::DocumentInfo ^ info, Microsoft::CodeAnalysis::Text::SourceText ^ text);
protected virtual void ApplyAdditionalDocumentAdded (Microsoft.CodeAnalysis.DocumentInfo info, Microsoft.CodeAnalysis.Text.SourceText text);
abstract member ApplyAdditionalDocumentAdded : Microsoft.CodeAnalysis.DocumentInfo * Microsoft.CodeAnalysis.Text.SourceText -> unit
override this.ApplyAdditionalDocumentAdded : Microsoft.CodeAnalysis.DocumentInfo * Microsoft.CodeAnalysis.Text.SourceText -> unit
Protected Overridable Sub ApplyAdditionalDocumentAdded (info As DocumentInfo, text As SourceText)

参数

text
SourceText

适用于