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
- campaignItemId
Type: System..::.Int32
The unique identifier of the CampaignItem to move to a different Campaign.
- newParentCampaignId
Type: System..::.Int32
The unique identifier of the Campaign to which the CampaignItem should be moved.
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
- 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.