Condividi tramite


AsyncReaderWriterLock.OnCriticalFailure Method

Definition

Overloads

OnCriticalFailure(Exception)

Invoked when the lock detects an internal error or illegal usage pattern that indicates a serious flaw that should be immediately reported to the application and/or bring down the process to avoid hangs or data corruption.

OnCriticalFailure(String)

Invoked when the lock detects an internal error or illegal usage pattern that indicates a serious flaw that should be immediately reported to the application and/or bring down the process to avoid hangs or data corruption.

OnCriticalFailure(Exception)

Invoked when the lock detects an internal error or illegal usage pattern that indicates a serious flaw that should be immediately reported to the application and/or bring down the process to avoid hangs or data corruption.

protected:
 virtual Exception ^ OnCriticalFailure(Exception ^ ex);
protected virtual Exception OnCriticalFailure (Exception ex);
abstract member OnCriticalFailure : Exception -> Exception
override this.OnCriticalFailure : Exception -> Exception
Protected Overridable Function OnCriticalFailure (ex As Exception) As Exception

Parameters

ex
Exception

The exception that captures the details of the failure.

Returns

An exception that may be returned by some implementations of tis method for he caller to rethrow.

Applies to

OnCriticalFailure(String)

Invoked when the lock detects an internal error or illegal usage pattern that indicates a serious flaw that should be immediately reported to the application and/or bring down the process to avoid hangs or data corruption.

protected:
 Exception ^ OnCriticalFailure(System::String ^ message);
protected Exception OnCriticalFailure (string message);
member this.OnCriticalFailure : string -> Exception
Protected Function OnCriticalFailure (message As String) As Exception

Parameters

message
String

The message to use for the exception.

Returns

An exception that may be returned by some implementations of tis method for he caller to rethrow.

Applies to