Share via


StringLengthValidationException Constructor (String)

Initializes a new instance of the StringLengthValidationException class with the specified error message.

Namespace:  Microsoft.CommerceServer
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
'Usage
Dim message As String

Dim instance As New StringLengthValidationException(message)
public StringLengthValidationException(
    string message
)
public:
StringLengthValidationException(
    String^ message
)
public function StringLengthValidationException(
    message : String
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.

Remarks

StringLengthValidationException is thrown when an attempt is made to save an entity and at least one string property of that entity is not within the allowed length.

Permissions

See Also

Reference

StringLengthValidationException Class

StringLengthValidationException Members

StringLengthValidationException Overload

Microsoft.CommerceServer Namespace