다음을 통해 공유


AssertFailedException Constructors

Definition

Overloads

AssertFailedException()

Initializes a new instance of the AssertFailedException class.

AssertFailedException(String)

Initializes a new instance of the AssertFailedException class.

AssertFailedException(SerializationInfo, StreamingContext)
AssertFailedException(String, Exception)

Initializes a new instance of the AssertFailedException class.

AssertFailedException()

Initializes a new instance of the AssertFailedException class.

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

Applies to

AssertFailedException(String)

Initializes a new instance of the AssertFailedException class.

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

Parameters

msg
String

The message.

Applies to

AssertFailedException(SerializationInfo, StreamingContext)

protected:
 AssertFailedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AssertFailedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

Applies to

AssertFailedException(String, Exception)

Initializes a new instance of the AssertFailedException class.

public:
 AssertFailedException(System::String ^ msg, Exception ^ ex);
public AssertFailedException (string msg, Exception ex);
new Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException : string * Exception -> Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
Public Sub New (msg As String, ex As Exception)

Parameters

msg
String

The message.

ex
Exception

The exception.

Applies to