Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Occurs when the lock detects an internal error or illegal usage pattern that indicates a serious flaw that should be immediately reported to the application, while possibly also stopping the process to avoid hangs or data corruption.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Protected Function OnCriticalFailure ( _
message As String _
) As Exception
protected Exception OnCriticalFailure(
string message
)
protected:
Exception^ OnCriticalFailure(
String^ message
)
member OnCriticalFailure :
message:string -> Exception
protected function OnCriticalFailure(
message : String
) : Exception
Parameters
message
Type: System.StringThe message to use for the exception.
Return Value
Type: System.Exception
An exception that may be returned by some implementations of htis method for the caller to rethrow.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.