Workspace.RegisterWorkspaceFailedHandler 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 workspace or part of its solution model fails to access a file or other external resource.
public Microsoft.CodeAnalysis.WorkspaceEventRegistration RegisterWorkspaceFailedHandler(Action<Microsoft.CodeAnalysis.WorkspaceDiagnosticEventArgs> handler, Microsoft.CodeAnalysis.WorkspaceEventOptions? options = default);
member this.RegisterWorkspaceFailedHandler : Action<Microsoft.CodeAnalysis.WorkspaceDiagnosticEventArgs> * Nullable<Microsoft.CodeAnalysis.WorkspaceEventOptions> -> Microsoft.CodeAnalysis.WorkspaceEventRegistration
Public Function RegisterWorkspaceFailedHandler (handler As Action(Of WorkspaceDiagnosticEventArgs), Optional options As Nullable(Of WorkspaceEventOptions) = Nothing) As WorkspaceEventRegistration
Parameters
- handler
- Action<WorkspaceDiagnosticEventArgs>
- options
- Nullable<WorkspaceEventOptions>