MaximumLimitException Constructor (String, Int32, Exception)
Initializes a new instance of the MaximumLimitException class with the specified error message, parameters and inner exception.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
maximumValue As Integer, _
inner As Exception _
)
'Usage
Dim message As String
Dim maximumValue As Integer
Dim inner As Exception
Dim instance As New MaximumLimitException(message, _
maximumValue, inner)
public MaximumLimitException(
string message,
int maximumValue,
Exception inner
)
public:
MaximumLimitException(
String^ message,
int maximumValue,
Exception^ inner
)
public function MaximumLimitException(
message : String,
maximumValue : int,
inner : Exception
)
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.
- inner
Type: System..::.Exception
The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
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.