MoveCampaignToCustomer Method
Associates the Campaign with a different Customer.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub MoveCampaignToCustomer ( _
campaignId As Integer, _
customerId As Integer _
)
'Usage
Dim instance As CampaignManager
Dim campaignId As Integer
Dim customerId As Integer
instance.MoveCampaignToCustomer(campaignId, _
customerId)
public void MoveCampaignToCustomer(
int campaignId,
int customerId
)
public:
void MoveCampaignToCustomer(
int campaignId,
int customerId
)
public function MoveCampaignToCustomer(
campaignId : int,
customerId : int
)
Parameters
- campaignId
Type: System..::.Int32
The Id of the campaign to be moved to a different customer. May not be zero or less.
- customerId
Type: System..::.Int32
The Id of the new Customer to which the Campaign should be associated.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | campaignId is less than or equal to zero. |
EntityStateException | The specified campaign has been deleted. |
ParentEntityDeletedException | The Customer specified by cutsomerId is deleted. |
EntityDoesNotExistException | The specified Campaign or Customer object does not exist. |
ParentEntityDoesNotExistException | The specified Customer object does not exist. |
Remarks
Moves an existing Campaign from one Customer to another.
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.