InvalidMessageFieldException Constructor(Int32,String)
Initializes a new instance of the InvalidMessageFieldException class with a specified error message and an error code associated with this exception.

C# Syntax

public InvalidMessageFieldException( 
   int errorCode,
   string message
)

Parameters

errorCode
The error code associated with this exception.
message
The error message that explains the reason for the exception.