MaximumLimitException Constructor (String, Int32)
Initializes a new instance of the MaximumLimitException class with the specified error message and parameters.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
maximumValue As Integer _
)
'Usage
Dim message As String
Dim maximumValue As Integer
Dim instance As New MaximumLimitException(message, _
maximumValue)
public MaximumLimitException(
string message,
int maximumValue
)
public:
MaximumLimitException(
String^ message,
int maximumValue
)
public function MaximumLimitException(
message : String,
maximumValue : int
)
Parameters
- message
Type: System..::.String
The error message that explains the reason for the exception.
- maximumValue
Type: System..::.Int32
The maximum allowed length for the name.
Remarks
The MaximumLimitException is thrown because you attempting to use a name with more characters than allowed. The exception that is thrown when a name contains more characters than allowed in the catalog system.
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.