Share via


EntityAlreadyExistsException Constructor (String, String, String)

Initializes a new instance of the EntityAlreadyExistsException class with the specified error message and parameters.

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

Syntax

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

Dim instance As New EntityAlreadyExistsException(message, _
    entityId, entityType)
public EntityAlreadyExistsException(
    string message,
    string entityId,
    string entityType
)
public:
EntityAlreadyExistsException(
    String^ message, 
    String^ entityId, 
    String^ entityType
)
public function EntityAlreadyExistsException(
    message : String, 
    entityId : String, 
    entityType : String
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.
  • entityId
    Type: System..::.String
    Integer Id of the entity that caused the exception.

Remarks

The exception that is thrown when attempting to add or create an item that already exists.

Permissions

See Also

Reference

EntityAlreadyExistsException Class

EntityAlreadyExistsException Members

EntityAlreadyExistsException Overload

Microsoft.CommerceServer Namespace