ThrowHelper.ThrowMissingMethodException 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
ThrowMissingMethodException(String, Exception) |
Throws a new MissingMethodException. |
ThrowMissingMethodException() |
Throws a new MissingMethodException. |
ThrowMissingMethodException(String) |
Throws a new MissingMethodException. |
ThrowMissingMethodException(String, String) |
Throws a new MissingMethodException. |
ThrowMissingMethodException<T>(String, String) |
Throws a new MissingMethodException. |
ThrowMissingMethodException<T>(String, Exception) |
Throws a new MissingMethodException. |
ThrowMissingMethodException<T>() |
Throws a new MissingMethodException. |
ThrowMissingMethodException<T>(String) |
Throws a new MissingMethodException. |
ThrowMissingMethodException(String, Exception)
Throws a new MissingMethodException.
public static void ThrowMissingMethodException (string? message, Exception? innerException);
static member ThrowMissingMethodException : string * Exception -> unit
Public Shared Sub ThrowMissingMethodException (message As String, innerException As Exception)
Parameters
- message
- String
The message to include in the exception.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowMissingMethodException()
Throws a new MissingMethodException.
public static void ThrowMissingMethodException ();
static member ThrowMissingMethodException : unit -> unit
Public Shared Sub ThrowMissingMethodException ()
Exceptions
Thrown with no parameters.
Applies to
ThrowMissingMethodException(String)
Throws a new MissingMethodException.
public static void ThrowMissingMethodException (string? message);
static member ThrowMissingMethodException : string -> unit
Public Shared Sub ThrowMissingMethodException (message As String)
Parameters
- message
- String
The message to include in the exception.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowMissingMethodException(String, String)
Throws a new MissingMethodException.
public static void ThrowMissingMethodException (string? className, string? methodName);
static member ThrowMissingMethodException : string * string -> unit
Public Shared Sub ThrowMissingMethodException (className As String, methodName As String)
Parameters
- className
- String
The target class being inspected.
- methodName
- String
The target method being retrieved.
Exceptions
Thrown with the specified parameters.
Applies to
ThrowMissingMethodException<T>(String, String)
Throws a new MissingMethodException.
public static T ThrowMissingMethodException<T> (string? className, string? methodName);
static member ThrowMissingMethodException : string * string -> 'T
Public Shared Function ThrowMissingMethodException(Of T) (className As String, methodName As String) As T
Type Parameters
- T
The type of expected result.
Parameters
- className
- String
The target class being inspected.
- methodName
- String
The target method being retrieved.
Returns
This method always throws, so it actually never returns a value.
Exceptions
Thrown with the specified parameters.
Applies to
ThrowMissingMethodException<T>(String, Exception)
Throws a new MissingMethodException.
public static T ThrowMissingMethodException<T> (string? message, Exception? innerException);
static member ThrowMissingMethodException : string * Exception -> 'T
Public Shared Function ThrowMissingMethodException(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.
Applies to
ThrowMissingMethodException<T>()
Throws a new MissingMethodException.
public static T ThrowMissingMethodException<T> ();
static member ThrowMissingMethodException : unit -> 'T
Public Shared Function ThrowMissingMethodException(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
ThrowMissingMethodException<T>(String)
Throws a new MissingMethodException.
public static T ThrowMissingMethodException<T> (string? message);
static member ThrowMissingMethodException : string -> 'T
Public Shared Function ThrowMissingMethodException(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.