Share via


Workspace.RegisterDocumentActiveContextChangedHandler Method

Definition

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

Returns

Applies to