ConnectionFailedWebTestException Constructor (SerializationInfo, StreamingContext)

Initializes a new instance of the ConnectionFailedWebTestException class with serialized data, for use in remoting scenarios.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
protected ConnectionFailedWebTestException(
    SerializationInfo info,
    StreamingContext context
)
protected:
ConnectionFailedWebTestException(
    SerializationInfo^ info, 
    StreamingContext context
)
new : 
        info:SerializationInfo * 
        context:StreamingContext -> ConnectionFailedWebTestException
protected function ConnectionFailedWebTestException(
    info : SerializationInfo, 
    context : StreamingContext
)

Parameters

  • info
    Type: SerializationInfo

    The SerializationInfo that holds the serialized object data about the exception being thrown.

  • context
    Type: StreamingContext

    The StreamingContext that contains contextual information about the source or destination.

Exceptions

Exception Condition
ArgumentNullException

The info parameter is nulla null reference (Nothing in Visual Basic).

SerializationException

The class name is nulla null reference (Nothing in Visual Basic) or HResult is zero (0).

Remarks

This constructor is used for deserialization situations. This is required for remoting scenarios when an exception is propagated from the server to the client.

.NET Framework Security

See Also

Reference

ConnectionFailedWebTestException Class

ConnectionFailedWebTestException Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace

SerializationInfo

StreamingContext

ArgumentNullException

SerializationException

HResult