MoveCampaignToCustomer Method
Moves a Campaign from one Customer to another.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Sub MoveCampaignToCustomer ( _
campaignId As Integer, _
newParentCustomerId As Integer _
)
'Usage
Dim instance As MarketingWebService
Dim campaignId As Integer
Dim newParentCustomerId As Integer
instance.MoveCampaignToCustomer(campaignId, _
newParentCustomerId)
[WebMethodAttribute]
public virtual void MoveCampaignToCustomer(
int campaignId,
int newParentCustomerId
)
[WebMethodAttribute]
public:
virtual void MoveCampaignToCustomer(
int campaignId,
int newParentCustomerId
)
public function MoveCampaignToCustomer(
campaignId : int,
newParentCustomerId : int
)
Parameters
- campaignId
Type: System..::.Int32
The identifier of the Campaign to be moved to a different customer.
- newParentCustomerId
Type: System..::.Int32
The identifier for the Customer under which the campaign is to be moved.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Either campaignId or newParentCustomerId is less than zero. |
NotAuthorizedException | The user is not authorized to perform the requested operation. |
EntityDoesNotExistException | No customer exists with this newParentCustomerId, or no campaign exists with this campaignId. |
EntityStateException | The campaign has not been deleted. |
ParentEntityDoesNotExistException | The Parent Customer does not exist. |
ParentEntityDeletedException | The Parent Customer has been deleted. |
DatabaseIntegrityException | A serious integrity issue with the database exists. |
Remarks
Associates the Campaign with a different Customer.
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.