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 | |
---|---|---|
EntityStateException()()() | Initializes a new instance of the EntityStateException class. | |
EntityStateException(String) | Initializes a new instance of the EntityStateException class with a specified error message. | |
EntityStateException(SerializationInfo, StreamingContext) | Initializes a new instance of the EntityStateException class with serialized data and streaming context information. | |
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. | |
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. | |
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. | |
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.