Workspace.RegisterWorkspaceChangedHandler 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 whenever the current solution is changed.
public Microsoft.CodeAnalysis.WorkspaceEventRegistration RegisterWorkspaceChangedHandler(Action<Microsoft.CodeAnalysis.WorkspaceChangeEventArgs> handler, Microsoft.CodeAnalysis.WorkspaceEventOptions? options = default);
member this.RegisterWorkspaceChangedHandler : Action<Microsoft.CodeAnalysis.WorkspaceChangeEventArgs> * Nullable<Microsoft.CodeAnalysis.WorkspaceEventOptions> -> Microsoft.CodeAnalysis.WorkspaceEventRegistration
Public Function RegisterWorkspaceChangedHandler (handler As Action(Of WorkspaceChangeEventArgs), Optional options As Nullable(Of WorkspaceEventOptions) = Nothing) As WorkspaceEventRegistration
Parameters
- handler
- Action<WorkspaceChangeEventArgs>
- options
- Nullable<WorkspaceEventOptions>