Click or drag to resize

WorkspaceApplyDocumentAdded Method



This method is called during TryApplyChanges(Solution) to add a new document to a project. Override this method to implement the capability of adding documents.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
protected virtual void ApplyDocumentAdded(
	DocumentInfo info,
	SourceText text
)

Parameters

info
Type: Microsoft.CodeAnalysisDocumentInfo
text
Type: Microsoft.CodeAnalysis.TextSourceText
See Also