DuplicateEntityNameException Class

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

The exception that is thrown when an insert is attempted for an entity, and an entity with that name already exists within the appropriate scope.

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

Syntax

'Declaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class DuplicateEntityNameException _
    Inherits Exception _
    Implements ISerializable
'Usage
Dim instance As DuplicateEntityNameException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class DuplicateEntityNameException : Exception, ISerializable
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class DuplicateEntityNameException : public Exception, 
    ISerializable
public class DuplicateEntityNameException extends Exception implements ISerializable

Remarks

The exception that is thrown when a name collision with an existing entity is encountered.

DuplicateEntityNameException is thrown when an entity is saved and an entity with the same name exists within the appropriate scope. Different entities have scopes within which names must be unique. Customer, CampaignItem, PromoCodeDefinition, and Expression names must be globally unique. CampaignItem names must be unique within the scope of the Campaign to which the CampaignItem belongs.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Microsoft.CommerceServer.Marketing..::.DuplicateEntityNameException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DuplicateEntityNameException Members

Microsoft.CommerceServer.Marketing Namespace