ExpressionValidationException Constructor (SerializationInfo, StreamingContext)
Initializes a new instance of the ExpressionValidationException class with specified serialization and streaming context information.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New ExpressionValidationException(info, context)
protected ExpressionValidationException(
SerializationInfo info,
StreamingContext context
)
protected:
ExpressionValidationException(
SerializationInfo^ info,
StreamingContext context
)
protected function ExpressionValidationException(
info : SerializationInfo,
context : StreamingContext
)
Parameters
- info
Type: System.Runtime.Serialization..::.SerializationInfo
A SerializationInfo that contains the serialized object data about the exception being thrown.
- context
Type: System.Runtime.Serialization..::.StreamingContext
A StreamingContext that contains contextual information about the source or destination.
Remarks
This constructor is needed for serialization when exception propagates from a remoting server to the client.
The ExpressionValidationException is the exception that is thrown when an expression does not pass simple validations. The validation makes sure that an expression uses the correct number and type of operands for each term or clause operator used.
Permissions
- 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.
See Also
Reference
ExpressionValidationException Class
ExpressionValidationException Members