Export (0) Print
Expand All

EntityInUseException Class

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

The exception that is thrown when an entity is in use and an attempt to delete the entity occurs.

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

public class EntityInUseException : CatalogException

All catalog exceptions, including the EntityInUseException are derived from the CatalogException class. The entity cannot be deleted as it is in use.

// Deletes the property from the catalog system
internal void DeleteProperty(string propertyName)
  catch (EntityDoesNotExistException ex)
    // The property does not exist
  catch (EntityInUseException ex)
    // The property is in use and cannot be deleted


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