ActivateCampaignItem Method
Activates a specific campaign item.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Sub ActivateCampaignItem ( _
campaignItemId As Integer, _
active As Boolean, _
timestamp As DateTime _
)
'Usage
Dim instance As MarketingWebService
Dim campaignItemId As Integer
Dim active As Boolean
Dim timestamp As DateTime
instance.ActivateCampaignItem(campaignItemId, _
active, timestamp)
[WebMethodAttribute]
public virtual void ActivateCampaignItem(
int campaignItemId,
bool active,
DateTime timestamp
)
[WebMethodAttribute]
public:
virtual void ActivateCampaignItem(
int campaignItemId,
bool active,
DateTime timestamp
)
public function ActivateCampaignItem(
campaignItemId : int,
active : boolean,
timestamp : DateTime
)
Parameters
- campaignItemId
Type: System..::.Int32
Identifier of the CampaignItem to be activated
- active
Type: System..::.Boolean
true to indicate the CampaignItem is currently active (a discount exists); otherwise false.
- timestamp
Type: System..::.DateTime
The LastModified timestamp of the item to be activated.
Remarks
The timestamp of the CampaignItem is provided to avoid a race condition when the author has changed the campaign between the time the approver got it from the server to examine it, and the time when it was actually approved. If the time stamp does not match the information in the database, it indicates the race condition.
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.