共用方式為


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

適用於