Workspace.RegisterDocumentActiveContextChangedHandler Method
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.
Registers a handler that is fired when the active context document associated with a buffer changes.
public Microsoft.CodeAnalysis.WorkspaceEventRegistration RegisterDocumentActiveContextChangedHandler(Action<Microsoft.CodeAnalysis.DocumentActiveContextChangedEventArgs> handler, Microsoft.CodeAnalysis.WorkspaceEventOptions? options = default);
member this.RegisterDocumentActiveContextChangedHandler : Action<Microsoft.CodeAnalysis.DocumentActiveContextChangedEventArgs> * Nullable<Microsoft.CodeAnalysis.WorkspaceEventOptions> -> Microsoft.CodeAnalysis.WorkspaceEventRegistration
Public Function RegisterDocumentActiveContextChangedHandler (handler As Action(Of DocumentActiveContextChangedEventArgs), Optional options As Nullable(Of WorkspaceEventOptions) = Nothing) As WorkspaceEventRegistration
Parameters
- options
- Nullable<WorkspaceEventOptions>