WrongResultTypeException Constructors
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
WrongResultTypeException() |
Initializes a new instance of the WrongResultTypeException class. |
WrongResultTypeException(String) |
Initializes a new instance of the WrongResultTypeException class by using the provided message. |
WrongResultTypeException(SerializationInfo, StreamingContext) |
Initializes a new instance of the WrongResultTypeException class by using the provide information and context. |
WrongResultTypeException(String, Exception) |
Initializes a new instance of the WrongResultTypeException class by using the provided message and inner exception. |
WrongResultTypeException()
Initializes a new instance of the WrongResultTypeException class.
public:
WrongResultTypeException();
public WrongResultTypeException ();
Public Sub New ()
Applies to
WrongResultTypeException(String)
Initializes a new instance of the WrongResultTypeException class by using the provided message.
public:
WrongResultTypeException(System::String ^ msg);
public WrongResultTypeException (string msg);
new Microsoft.VisualStudio.TestTools.Exceptions.WrongResultTypeException : string -> Microsoft.VisualStudio.TestTools.Exceptions.WrongResultTypeException
Public Sub New (msg As String)
Parameters
- msg
- String
Message that describes the exception.
Applies to
WrongResultTypeException(SerializationInfo, StreamingContext)
Initializes a new instance of the WrongResultTypeException class by using the provide information and context.
protected:
WrongResultTypeException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected WrongResultTypeException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Exceptions.WrongResultTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Exceptions.WrongResultTypeException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Information about the exception.
- context
- StreamingContext
The source and the destination of the exception.
Applies to
WrongResultTypeException(String, Exception)
Initializes a new instance of the WrongResultTypeException class by using the provided message and inner exception.
public:
WrongResultTypeException(System::String ^ msg, Exception ^ inner);
public WrongResultTypeException (string msg, Exception inner);
new Microsoft.VisualStudio.TestTools.Exceptions.WrongResultTypeException : string * Exception -> Microsoft.VisualStudio.TestTools.Exceptions.WrongResultTypeException
Public Sub New (msg As String, inner As Exception)
Parameters
- msg
- String
Message that describes the exception.
- inner
- Exception
Exception that caused the current exception.