Delete Method

Permanently deletes a global expression.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub Delete ( _
    expressionId As Integer _
)
'Usage
Dim instance As ExpressionManager
Dim expressionId As Integer

instance.Delete(expressionId)
public void Delete(
    int expressionId
)
public:
void Delete(
    int expressionId
)
public function Delete(
    expressionId : int
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

expressionId is not valid.

EntityDoesNotExistException

The entity referred to by expressionId does not exist.

InvalidOperationException

An attempt was made to delete a local expression. Local expressions may only be deleted in the context of a CampaignItem.

EntityReferencedException

The Expression cannot be deleted because entities that depend on it exist.

EntityStateException

The Expression is submitted for approval and the current user does not have PriviligedDelete permission.

NotAuthorizedException

The user is not authorized to perform the requested operation

Remarks

Delete will raise an exception if called on a local expression.

Unlike Customer, Campaign, and CampaignItem, deleting an Expression is a permanent delete (purge).

Permissions

See Also

Reference

ExpressionManager Class

ExpressionManager Members

Microsoft.CommerceServer.Marketing Namespace