PropertyTypeValidationException Constructor (String, String, String, String)
Initializes a new instance of the PropertyTypeValidationException with the specified error message and property name.
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 _
)
'Usage
Dim message As String
Dim propertyName As String
Dim expectedType As String
Dim actualValue As String
Dim instance As New PropertyTypeValidationException(message, _
propertyName, expectedType, actualValue)
public PropertyTypeValidationException(
string message,
string propertyName,
string expectedType,
string actualValue
)
public:
PropertyTypeValidationException(
String^ message,
String^ propertyName,
String^ expectedType,
String^ actualValue
)
public function PropertyTypeValidationException(
message : String,
propertyName : String,
expectedType : String,
actualValue : String
)
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.
Remarks
The exception thrown when an attempt is made to create or update a profile instance with invalid data in a property.
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.
See Also
Reference
PropertyTypeValidationException Class
PropertyTypeValidationException Members