InvalidTestObjectException Constructors

Definition

Overloads

InvalidTestObjectException()

Initializes a new instance of the InvalidTestObjectException class.

InvalidTestObjectException(Object)

Initializes a new instance of the InvalidTestObjectException class by using the provided test object.

InvalidTestObjectException(String)

Initializes a new instance of the InvalidTestObjectException class by using the provided message.

InvalidTestObjectException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidTestObjectException class by using the provided information and context.

InvalidTestObjectException(String, Exception)

Initializes a new instance of the InvalidTestObjectException class by using the provided message and inner exception.

InvalidTestObjectException()

Initializes a new instance of the InvalidTestObjectException class.

public:
 InvalidTestObjectException();
public InvalidTestObjectException ();
Public Sub New ()

Applies to

InvalidTestObjectException(Object)

Initializes a new instance of the InvalidTestObjectException class by using the provided test object.

public:
 InvalidTestObjectException(System::Object ^ invalid);
public InvalidTestObjectException (object invalid);
new Microsoft.VisualStudio.TestTools.Exceptions.InvalidTestObjectException : obj -> Microsoft.VisualStudio.TestTools.Exceptions.InvalidTestObjectException
Public Sub New (invalid As Object)

Parameters

invalid
Object

Applies to

InvalidTestObjectException(String)

Initializes a new instance of the InvalidTestObjectException class by using the provided message.

public:
 InvalidTestObjectException(System::String ^ msg);
public InvalidTestObjectException (string msg);
new Microsoft.VisualStudio.TestTools.Exceptions.InvalidTestObjectException : string -> Microsoft.VisualStudio.TestTools.Exceptions.InvalidTestObjectException
Public Sub New (msg As String)

Parameters

msg
String

Message that describes the exception.

Applies to

InvalidTestObjectException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidTestObjectException class by using the provided information and context.

protected:
 InvalidTestObjectException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InvalidTestObjectException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Exceptions.InvalidTestObjectException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Exceptions.InvalidTestObjectException
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

InvalidTestObjectException(String, Exception)

Initializes a new instance of the InvalidTestObjectException class by using the provided message and inner exception.

public:
 InvalidTestObjectException(System::String ^ msg, Exception ^ inner);
public InvalidTestObjectException (string msg, Exception inner);
new Microsoft.VisualStudio.TestTools.Exceptions.InvalidTestObjectException : string * Exception -> Microsoft.VisualStudio.TestTools.Exceptions.InvalidTestObjectException
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.

Applies to