Delete Method
Deletes an existing CampaignItem record.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub Delete ( _
campaignItemId As Integer _
)
'Usage
Dim instance As CampaignItemManager
Dim campaignItemId As Integer
instance.Delete(campaignItemId)
public void Delete(
int campaignItemId
)
public:
void Delete(
int campaignItemId
)
public function Delete(
campaignItemId : int
)
Parameters
- campaignItemId
Type: System..::.Int32
The Id of the CampaignItem to delete. May not be less than 1.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The campaignItemId was less than one. |
EntityDoesNotExistException | A CampaignItem with the provided Id does not exist. |
EntityStateException | The CampaignItem is submitted for approval and the current user does not have PriviligedDelete permission. |
Remarks
Deleting a CampaignItem does not actually remove the CampaignItem record from the database. These records are not permanently removed until the PurgeDeletedCampaignItems method is called.
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.