ThrowHelper.ThrowSynchronizationLockException 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.
Overloads
ThrowSynchronizationLockException()
Throws a new SynchronizationLockException.
public static void ThrowSynchronizationLockException ();
static member ThrowSynchronizationLockException : unit -> unit
Public Shared Sub ThrowSynchronizationLockException ()
Exceptions
Thrown with no parameters.
Applies to
ThrowSynchronizationLockException(String)
Throws a new SynchronizationLockException.
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)
Throws a new SynchronizationLockException.
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.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowSynchronizationLockException<T>()
Throws a new SynchronizationLockException.
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
This method always throws, so it actually never returns a value.
Exceptions
Thrown with no parameters.
Applies to
ThrowSynchronizationLockException<T>(String)
Throws a new SynchronizationLockException.
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
This method always throws, so it actually never returns a value.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowSynchronizationLockException<T>(String, Exception)
Throws a new SynchronizationLockException.
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.
Returns
This method always throws, so it actually never returns a value.
Exceptions
Thrown with the specified parameter.