ThrowHelper.ThrowSynchronizationLockException Method

Definition

Overloads

ThrowSynchronizationLockException()

Throws a new SynchronizationLockException.

ThrowSynchronizationLockException(String)

Throws a new SynchronizationLockException.

ThrowSynchronizationLockException(String, Exception)

Throws a new SynchronizationLockException.

ThrowSynchronizationLockException<T>()

Throws a new SynchronizationLockException.

ThrowSynchronizationLockException<T>(String)

Throws a new SynchronizationLockException.

ThrowSynchronizationLockException<T>(String, Exception)

Throws a new SynchronizationLockException.

ThrowSynchronizationLockException()

public static void ThrowSynchronizationLockException ();
static member ThrowSynchronizationLockException : unit -> unit
Public Shared Sub ThrowSynchronizationLockException ()

Exceptions

Thrown with no parameters.

Applies to

ThrowSynchronizationLockException(String)

public static void ThrowSynchronizationLockException (string? message);
static member ThrowSynchronizationLockException : string -> unit
Public Shared Sub ThrowSynchronizationLockException (message As String)

Parameters

message
String

The message to include in the exception.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowSynchronizationLockException(String, Exception)

public static void ThrowSynchronizationLockException (string? message, Exception? innerException);
static member ThrowSynchronizationLockException : string * Exception -> unit
Public Shared Sub ThrowSynchronizationLockException (message As String, innerException As Exception)

Parameters

message
String

The message to include in the exception.

innerException
Exception

The inner Exception to include.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowSynchronizationLockException<T>()

public static T ThrowSynchronizationLockException<T> ();
static member ThrowSynchronizationLockException : unit -> 'T
Public Shared Function ThrowSynchronizationLockException(Of T) () As T

Type Parameters

T

The type of expected result.

Returns

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with no parameters.

Applies to

ThrowSynchronizationLockException<T>(String)

public static T ThrowSynchronizationLockException<T> (string? message);
static member ThrowSynchronizationLockException : string -> 'T
Public Shared Function ThrowSynchronizationLockException(Of T) (message As String) As T

Type Parameters

T

The type of expected result.

Parameters

message
String

The message to include in the exception.

Returns

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowSynchronizationLockException<T>(String, Exception)

public static T ThrowSynchronizationLockException<T> (string? message, Exception? innerException);
static member ThrowSynchronizationLockException : string * Exception -> 'T
Public Shared Function ThrowSynchronizationLockException(Of T) (message As String, innerException As Exception) As T

Type Parameters

T

The type of expected result.

Parameters

message
String

The message to include in the exception.

innerException
Exception

The inner Exception to include.

Returns

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with the specified parameter.

Applies to