ThrowHelper.ThrowNotSupportedException 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
| ThrowNotSupportedException() |
Throws a new NotSupportedException. |
| ThrowNotSupportedException(String) |
Throws a new NotSupportedException. |
| ThrowNotSupportedException(String, Exception) |
Throws a new NotSupportedException. |
| ThrowNotSupportedException<T>() |
Throws a new NotSupportedException. |
| ThrowNotSupportedException<T>(String) |
Throws a new NotSupportedException. |
| ThrowNotSupportedException<T>(String, Exception) |
Throws a new NotSupportedException. |
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.
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
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
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.
Returns
This method always throws, so it actually never returns a value.
Exceptions
Thrown with the specified parameter.