Share via


MoveCampaignItemToCampaign Method

Moves an existing CampaignItem from one Campaign to another.

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

Syntax

'Declaration
Public Sub MoveCampaignItemToCampaign ( _
    campaignItemId As Integer, _
    newParentCampaignId As Integer _
)
'Usage
Dim instance As CampaignItemManager
Dim campaignItemId As Integer
Dim newParentCampaignId As Integer

instance.MoveCampaignItemToCampaign(campaignItemId, _
    newParentCampaignId)
public void MoveCampaignItemToCampaign(
    int campaignItemId,
    int newParentCampaignId
)
public:
void MoveCampaignItemToCampaign(
    int campaignItemId, 
    int newParentCampaignId
)
public function MoveCampaignItemToCampaign(
    campaignItemId : int, 
    newParentCampaignId : int
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

The campaignItemId or the newParentCampaignId was less than one.

EntityDoesNotExistException

The specified CampaignItem or Campaign record does not exist.

EntityStateException

The CampaignItem or the Campaign is deleted.

Remarks

Moves the specified CampaignItem from one Campaign to another. The source campaign item and the destination parent are identified.

Permissions

See Also

Reference

CampaignItemManager Class

CampaignItemManager Members

Microsoft.CommerceServer.Marketing Namespace