UITestException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| UITestException() |
初始化 UITestException 类的新实例。 |
| UITestException(String) |
UITestException使用给定的错误消息初始化类的新实例。 |
| UITestException(SerializationInfo, StreamingContext) |
初始化类的新实例 UITestException 以反序列化异常。 |
| UITestException(String, Exception) |
UITestException使用提供的消息和内部异常初始化类的新实例。 |
UITestException()
初始化 UITestException 类的新实例。
public:
UITestException();
public UITestException ();
Public Sub New ()
适用于
UITestException(String)
UITestException使用给定的错误消息初始化类的新实例。
public:
UITestException(System::String ^ message);
public UITestException (string message);
new Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException : string -> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
Public Sub New (message As String)
参数
- message
- String
错误信息。
适用于
UITestException(SerializationInfo, StreamingContext)
初始化类的新实例 UITestException 以反序列化异常。
protected:
UITestException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected UITestException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
- context
- StreamingContext
StreamingContext 对象。
适用于
UITestException(String, Exception)
UITestException使用提供的消息和内部异常初始化类的新实例。
public:
UITestException(System::String ^ message, Exception ^ innerException);
public UITestException (string message, Exception innerException);
new Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException : string * Exception -> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
错误信息。
- innerException
- Exception
引发当前异常的异常。