Share via


EntityStateException Constructor

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

Initializes a new instance of the EntityStateException class.

Overload List

  Name Description
ms989382.pubmethod(en-US,CS.70).gif EntityStateException()()() Initializes a new instance of the EntityStateException class.
ms989382.pubmethod(en-US,CS.70).gif EntityStateException(String) Initializes a new instance of the EntityStateException class with a specified error message.
ms989382.protmethod(en-US,CS.70).gif EntityStateException(SerializationInfo, StreamingContext) Initializes a new instance of the EntityStateException class with serialized data and streaming context information.
ms989382.pubmethod(en-US,CS.70).gif EntityStateException(String, Exception) Initializes a new instance of the EntityStateException class with a specified error message and a reference to the inner exception that is the cause of this exception.
ms989382.pubmethod(en-US,CS.70).gif EntityStateException(String, String, Int32, CurrentEntityState) Initializes a new instance of the EntityStateException with the specified error message, and the type and Id of the entity that caused it.
ms989382.pubmethod(en-US,CS.70).gif EntityStateException(String, String, String, CurrentEntityState) Initializes a new instance of the EntityStateException with the specified error message, and the type and Id of the entity that caused it.
ms989382.pubmethod(en-US,CS.70).gif EntityStateException(String, String, String, CurrentEntityState, Exception) Initializes a new instance of the EntityStateException with the specified error message, and the type and Id of the entity that caused it.

Top

Remarks

EntityStateException is thrown when the state of an entity prevents an operation from being performed. Examples include attempting to delete an entity that has already been deleted, restoring an entity that has not been deleted, or activating an entity that is already active.

See Also

Reference

EntityStateException Class

EntityStateException Members

Microsoft.CommerceServer.Marketing Namespace