Edit

Share via


ThrowHelper.ThrowNotSupportedException Method

Definition

Overloads

ThrowNotSupportedException()

Source:
ThrowHelper.cs
Source:
ThrowHelper.cs

Throws a new NotSupportedException.

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

Exceptions

Thrown with no parameters.

Applies to

ThrowNotSupportedException(String)

Source:
ThrowHelper.cs
Source:
ThrowHelper.cs

Throws a new NotSupportedException.

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

Parameters

message
String

The message to include in the exception.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowNotSupportedException(String, Exception)

Source:
ThrowHelper.cs
Source:
ThrowHelper.cs

Throws a new NotSupportedException.

public static void ThrowNotSupportedException(string? message, Exception? innerException);
static member ThrowNotSupportedException : string * Exception -> unit
Public Shared Sub ThrowNotSupportedException (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

ThrowNotSupportedException<T>()

Source:
ThrowHelper.Generic.cs
Source:
ThrowHelper.Generic.cs

Throws a new NotSupportedException.

public static T ThrowNotSupportedException<T>();
static member ThrowNotSupportedException : unit -> 'T
Public Shared Function ThrowNotSupportedException(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

ThrowNotSupportedException<T>(String)

Source:
ThrowHelper.Generic.cs
Source:
ThrowHelper.Generic.cs

Throws a new NotSupportedException.

public static T ThrowNotSupportedException<T>(string? message);
static member ThrowNotSupportedException : string -> 'T
Public Shared Function ThrowNotSupportedException(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

ThrowNotSupportedException<T>(String, Exception)

Source:
ThrowHelper.Generic.cs
Source:
ThrowHelper.Generic.cs

Throws a new NotSupportedException.

public static T ThrowNotSupportedException<T>(string? message, Exception? innerException);
static member ThrowNotSupportedException : string * Exception -> 'T
Public Shared Function ThrowNotSupportedException(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