Share via


Workspace.RegisterWorkspaceChangedImmediateHandler Method

Definition

Registers a handler that is fired immediately whenever the current solution is changed. Handlers should be written to be very fast. Always called from the thread changing the workspace, regardless of the preferences indicated by the passed in options. This thread my vary depending on the workspace.

public Microsoft.CodeAnalysis.WorkspaceEventRegistration RegisterWorkspaceChangedImmediateHandler(Action<Microsoft.CodeAnalysis.WorkspaceChangeEventArgs> handler, Microsoft.CodeAnalysis.WorkspaceEventOptions? options = default);
member this.RegisterWorkspaceChangedImmediateHandler : Action<Microsoft.CodeAnalysis.WorkspaceChangeEventArgs> * Nullable<Microsoft.CodeAnalysis.WorkspaceEventOptions> -> Microsoft.CodeAnalysis.WorkspaceEventRegistration
Public Function RegisterWorkspaceChangedImmediateHandler (handler As Action(Of WorkspaceChangeEventArgs), Optional options As Nullable(Of WorkspaceEventOptions) = Nothing) As WorkspaceEventRegistration

Parameters

Returns

Applies to