EntityReferencedException Constructor (String, String, String)
Initializes a new instance of the EntityReferencedException with the specified error message and the type and Id of the entity that caused it.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
entityType As String, _
dependentEntityType As String _
)
'Usage
Dim message As String
Dim entityType As String
Dim dependentEntityType As String
Dim instance As New EntityReferencedException(message, _
entityType, dependentEntityType)
public EntityReferencedException(
string message,
string entityType,
string dependentEntityType
)
public:
EntityReferencedException(
String^ message,
String^ entityType,
String^ dependentEntityType
)
public function EntityReferencedException(
message : String,
entityType : String,
dependentEntityType : String
)
Parameters
- message
Type: System..::.String
The error message that explains the reason for the exception.
- entityType
Type: System..::.String
The type of entity that caused the exception.
- dependentEntityType
Type: System..::.String
The type of the entity which this object depended on.
Remarks
EntityReferencedException is thrown when an attempt is made to delete an entity which another current entity is dependent upon.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
EntityReferencedException Class
EntityReferencedException Members