WebTestException Constructor (SerializationInfo, StreamingContext)
Initializes a new instance of the WebTestException class for 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 WebTestException(
SerializationInfo info,
StreamingContext context
)
protected:
WebTestException(
SerializationInfo^ info,
StreamingContext context
)
new :
info:SerializationInfo *
context:StreamingContext -> WebTestException
protected function WebTestException(
info : SerializationInfo,
context : StreamingContext
)
Parameters
info
Type: SerializationInfoHolds the serialized object data about the exception being thrown.
context
Type: StreamingContextContains contextual information about the source or the destination.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | info is nulla null reference (Nothing in Visual Basic). |
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.