다음을 통해 공유


DeleteExpression Method

Deletes a specified Expression.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub DeleteExpression ( _
    expressionId As Integer _
)
'Usage
Dim instance As MarketingWebService
Dim expressionId As Integer

instance.DeleteExpression(expressionId)
[WebMethodAttribute]
public virtual void DeleteExpression(
    int expressionId
)
[WebMethodAttribute]
public:
virtual void DeleteExpression(
    int expressionId
)
public function DeleteExpression(
    expressionId : int
)

Parameters

  • expressionId
    Type: System..::.Int32
    The identifier of the expression to be deleted.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The expressionId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

The expressionId does not exist.

InvalidCatalogOperationException

An attempt was made to directly access a local expression. A local expression only exists in the context of a campaign item and must be saved and retrieved with the campaign item.

EntityReferencedException

The expression is being referenced by another entity.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Deletes an expression. An Expression can be local or global. A local expression is a discount-specific Expression since it is created or destroyed within the context of a discount. Global Expressions are shared Expressions since they can be used by any discount in the system.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace