다음을 통해 공유


MoveCampaignItemToCampaign Method

Moves a Campaign Item into another Campaign. The operation causes the database to be updated immediately.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub MoveCampaignItemToCampaign ( _
    campaignItemId As Integer, _
    newParentCampaignId As Integer _
)
'Usage
Dim instance As MarketingWebService
Dim campaignItemId As Integer
Dim newParentCampaignId As Integer

instance.MoveCampaignItemToCampaign(campaignItemId, _
    newParentCampaignId)
[WebMethodAttribute]
public virtual void MoveCampaignItemToCampaign(
    int campaignItemId,
    int newParentCampaignId
)
[WebMethodAttribute]
public:
virtual void MoveCampaignItemToCampaign(
    int campaignItemId, 
    int newParentCampaignId
)
public function MoveCampaignItemToCampaign(
    campaignItemId : int, 
    newParentCampaignId : int
)

Parameters

  • newParentCampaignId
    Type: System..::.Int32
    The identifier for the Campaign under which the campaign item is to be moved.

Exceptions

Exception Condition
ArgumentOutOfRangeException

Either campaignItemId or newParentCampaignId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

The Campaign Item does not exist.

EntityStateException

The Campaign Item has been deleted, or the new Campaign has been deleted.

ParentEntityDoesNotExistException

The Parent Campaign does not exist.

ParentEntityDeletedException

The new Campaign has been deleted.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

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

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace