共用方式為


Workspace.OnDocumentOpened(DocumentId, SourceTextContainer, Boolean) 方法

定義

protected internal void OnDocumentOpened (Microsoft.CodeAnalysis.DocumentId documentId, Microsoft.CodeAnalysis.Text.SourceTextContainer textContainer, bool isCurrentContext = true);
member this.OnDocumentOpened : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.Text.SourceTextContainer * bool -> unit
Protected Friend Sub OnDocumentOpened (documentId As DocumentId, textContainer As SourceTextContainer, Optional isCurrentContext As Boolean = true)

參數

documentId
DocumentId
textContainer
SourceTextContainer
isCurrentContext
Boolean

適用於