Share via


PropertyTypeValidationException Constructor (String, String, String, String, Exception)

Initializes a new instance of the PropertyTypeValidationException with the specified error message, property name, and the inner exception that caused it.

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

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    propertyName As String, _
    expectedType As String, _
    actualValue As String, _
    inner As Exception _
)
'Usage
Dim message As String
Dim propertyName As String
Dim expectedType As String
Dim actualValue As String
Dim inner As Exception

Dim instance As New PropertyTypeValidationException(message, _
    propertyName, expectedType, actualValue, _
    inner)
public PropertyTypeValidationException(
    string message,
    string propertyName,
    string expectedType,
    string actualValue,
    Exception inner
)
public:
PropertyTypeValidationException(
    String^ message, 
    String^ propertyName, 
    String^ expectedType, 
    String^ actualValue, 
    Exception^ inner
)
public function PropertyTypeValidationException(
    message : String, 
    propertyName : String, 
    expectedType : String, 
    actualValue : String, 
    inner : Exception
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.
  • propertyName
    Type: System..::.String
    The name of the property that caused the exception.
  • expectedType
    Type: System..::.String
    The data type of the property that caused the exception.
  • actualValue
    Type: System..::.String
    The value of the property that caused the exception.
  • inner
    Type: System..::.Exception
    The exception that is the cause of the current exception. If not nullNothingnullptra null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Remarks

The exception thrown when an attempt is made to create or update a profile instance with invalid data in a property.

Permissions

See Also

Reference

PropertyTypeValidationException Class

PropertyTypeValidationException Members

PropertyTypeValidationException Overload

Microsoft.CommerceServer.Profiles Namespace