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