ThrowHelper.ThrowMissingMethodException Method

Definition

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.

innerException
Exception

The inner Exception to include.

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

T

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.

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

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

T

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

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with the specified parameter.

Applies to