ThrowHelper.ThrowPlatformNotSupportedException 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
ThrowPlatformNotSupportedException()
- Source:
- ThrowHelper.cs
- Source:
- ThrowHelper.cs
Throws a new PlatformNotSupportedException.
public static void ThrowPlatformNotSupportedException();
static member ThrowPlatformNotSupportedException : unit -> unit
Public Shared Sub ThrowPlatformNotSupportedException ()
Exceptions
Thrown with no parameters.
Applies to
ThrowPlatformNotSupportedException(String)
- Source:
- ThrowHelper.cs
- Source:
- ThrowHelper.cs
Throws a new PlatformNotSupportedException.
public static void ThrowPlatformNotSupportedException(string? message);
static member ThrowPlatformNotSupportedException : string -> unit
Public Shared Sub ThrowPlatformNotSupportedException (message As String)
Parameters
- message
- String
The message to include in the exception.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowPlatformNotSupportedException(String, Exception)
- Source:
- ThrowHelper.cs
- Source:
- ThrowHelper.cs
Throws a new PlatformNotSupportedException.
public static void ThrowPlatformNotSupportedException(string? message, Exception? innerException);
static member ThrowPlatformNotSupportedException : string * Exception -> unit
Public Shared Sub ThrowPlatformNotSupportedException (message As String, innerException As Exception)
Parameters
- message
- String
The message to include in the exception.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowPlatformNotSupportedException<T>()
- Source:
- ThrowHelper.Generic.cs
- Source:
- ThrowHelper.Generic.cs
Throws a new PlatformNotSupportedException.
public static T ThrowPlatformNotSupportedException<T>();
static member ThrowPlatformNotSupportedException : unit -> 'T
Public Shared Function ThrowPlatformNotSupportedException(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
ThrowPlatformNotSupportedException<T>(String)
- Source:
- ThrowHelper.Generic.cs
- Source:
- ThrowHelper.Generic.cs
Throws a new PlatformNotSupportedException.
public static T ThrowPlatformNotSupportedException<T>(string? message);
static member ThrowPlatformNotSupportedException : string -> 'T
Public Shared Function ThrowPlatformNotSupportedException(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
ThrowPlatformNotSupportedException<T>(String, Exception)
- Source:
- ThrowHelper.Generic.cs
- Source:
- ThrowHelper.Generic.cs
Throws a new PlatformNotSupportedException.
public static T ThrowPlatformNotSupportedException<T>(string? message, Exception? innerException);
static member ThrowPlatformNotSupportedException : string * Exception -> 'T
Public Shared Function ThrowPlatformNotSupportedException(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.