InternalTestFailureException 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
| InternalTestFailureException() | Initializes a new instance of the InternalTestFailureException class. | 
| InternalTestFailureException(String) | Initializes a new instance of the InternalTestFailureException class. | 
| InternalTestFailureException(SerializationInfo, StreamingContext) | Initializes a new instance of the InternalTestFailureException class. | 
| InternalTestFailureException(String, Exception) | Initializes a new instance of the InternalTestFailureException class. | 
InternalTestFailureException()
Initializes a new instance of the InternalTestFailureException class.
public:
 InternalTestFailureException();public InternalTestFailureException();Public Sub New ()Applies to
InternalTestFailureException(String)
Initializes a new instance of the InternalTestFailureException class.
public:
 InternalTestFailureException(System::String ^ msg);public InternalTestFailureException(string msg);new Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureException : string -> Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureExceptionPublic Sub New (msg As String)Parameters
- msg
- String
The exception message.
Applies to
InternalTestFailureException(SerializationInfo, StreamingContext)
Initializes a new instance of the InternalTestFailureException class.
protected:
 InternalTestFailureException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
protected InternalTestFailureException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);protected InternalTestFailureException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
new Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureExceptionnew Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureExceptionProtected Sub New (info As SerializationInfo, context As StreamingContext)Parameters
- info
- SerializationInfo
Serialization info.
- context
- StreamingContext
Streaming context.
- Attributes
Applies to
InternalTestFailureException(String, Exception)
Initializes a new instance of the InternalTestFailureException class.
public:
 InternalTestFailureException(System::String ^ msg, Exception ^ ex);public InternalTestFailureException(string msg, Exception ex);new Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureException : string * Exception -> Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureExceptionPublic Sub New (msg As String, ex As Exception)Parameters
- msg
- String
The exception message.
- ex
- Exception
The exception.