Jaa


InvalidObjectException Constructor (String, String, String, String)

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Initializes a new instance of the InvalidObjectException 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, _
    entityName As String, _
    entityType As String, _
    propertyName As String _
)
'Usage
Dim message As String
Dim entityName As String
Dim entityType As String
Dim propertyName As String

Dim instance As New InvalidObjectException(message, _
    entityName, entityType, propertyName)
public InvalidObjectException(
    string message,
    string entityName,
    string entityType,
    string propertyName
)
public:
InvalidObjectException(
    String^ message, 
    String^ entityName, 
    String^ entityType, 
    String^ propertyName
)
public function InvalidObjectException(
    message : String, 
    entityName : String, 
    entityType : String, 
    propertyName : 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 which failed validation.

Remarks

All catalog exceptions, including the InvalidObjectException are derived from the CatalogException class. (The ValidationException is derived from the CatalogException class.) The InvalidObjectException is thrown because you have an invalid object.

Permissions

See Also

Reference

InvalidObjectException Class

InvalidObjectException Members

InvalidObjectException Overload

Microsoft.CommerceServer.Catalog Namespace