Workspace.RegisterWorkspaceChangedImmediateHandler 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 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
- handler
- Action<WorkspaceChangeEventArgs>
- options
- Nullable<WorkspaceEventOptions>