Workspace.DocumentOpened Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use RegisterDocumentOpenedHandler instead, which by default will no longer run on the UI thread.
An event that is fired when a Document is opened in the editor.
public:
event EventHandler<Microsoft::CodeAnalysis::DocumentEventArgs ^> ^ DocumentOpened;
public event EventHandler<Microsoft.CodeAnalysis.DocumentEventArgs> DocumentOpened;
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use RegisterDocumentOpenedHandler instead, which by default will no longer run on the UI thread.", false)]
public event EventHandler<Microsoft.CodeAnalysis.DocumentEventArgs> DocumentOpened;
member this.DocumentOpened : EventHandler<Microsoft.CodeAnalysis.DocumentEventArgs>
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("Use RegisterDocumentOpenedHandler instead, which by default will no longer run on the UI thread.", false)>]
member this.DocumentOpened : EventHandler<Microsoft.CodeAnalysis.DocumentEventArgs>
Public Custom Event DocumentOpened As EventHandler(Of DocumentEventArgs)
Event Type
- Attributes