Share via


Workspace.WorkspaceFailed Event

Definition

Caution

Use RegisterWorkspaceFailedHandler instead, which by default will no longer run on the UI thread.

An event raised whenever the workspace or part of its solution model fails to access a file or other external resource.

public:
 event EventHandler<Microsoft::CodeAnalysis::WorkspaceDiagnosticEventArgs ^> ^ WorkspaceFailed;
public event EventHandler<Microsoft.CodeAnalysis.WorkspaceDiagnosticEventArgs> WorkspaceFailed;
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use RegisterWorkspaceFailedHandler instead, which by default will no longer run on the UI thread.", false)]
public event EventHandler<Microsoft.CodeAnalysis.WorkspaceDiagnosticEventArgs> WorkspaceFailed;
member this.WorkspaceFailed : EventHandler<Microsoft.CodeAnalysis.WorkspaceDiagnosticEventArgs> 
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("Use RegisterWorkspaceFailedHandler instead, which by default will no longer run on the UI thread.", false)>]
member this.WorkspaceFailed : EventHandler<Microsoft.CodeAnalysis.WorkspaceDiagnosticEventArgs> 
Public Custom Event WorkspaceFailed As EventHandler(Of WorkspaceDiagnosticEventArgs) 

Event Type

Attributes

Applies to