WrongResultTypeException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| WrongResultTypeException() |
初始化 WrongResultTypeException 类的新实例。 |
| WrongResultTypeException(String) |
WrongResultTypeException使用提供的消息初始化类的新实例。 |
| WrongResultTypeException(SerializationInfo, StreamingContext) |
WrongResultTypeException使用提供的信息和上下文初始化类的新实例。 |
| WrongResultTypeException(String, Exception) |
WrongResultTypeException使用提供的消息和内部异常初始化类的新实例。 |
WrongResultTypeException()
初始化 WrongResultTypeException 类的新实例。
public:
WrongResultTypeException();
public WrongResultTypeException ();
Public Sub New ()
适用于
WrongResultTypeException(String)
WrongResultTypeException使用提供的消息初始化类的新实例。
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)
参数
- msg
- String
描述异常的消息。
适用于
WrongResultTypeException(SerializationInfo, StreamingContext)
WrongResultTypeException使用提供的信息和上下文初始化类的新实例。
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)
参数
- info
- SerializationInfo
有关异常的信息。
- context
- StreamingContext
异常的源和目标。
适用于
WrongResultTypeException(String, Exception)
WrongResultTypeException使用提供的消息和内部异常初始化类的新实例。
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)
参数
- msg
- String
描述异常的消息。
- inner
- Exception
导致当前异常的异常。