Partager via


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.
  • 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

See Also

Reference

EntityReferencedException Class

EntityReferencedException Members

EntityReferencedException Overload

Microsoft.CommerceServer.Marketing Namespace