Delen via


Activate Method

Activate a CampaignItem.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub Activate ( _
    campaignItemId As Integer, _
    timestamp As DateTime _
)
'Usage
Dim instance As CampaignItemManager
Dim campaignItemId As Integer
Dim timestamp As DateTime

instance.Activate(campaignItemId, timestamp)
public void Activate(
    int campaignItemId,
    DateTime timestamp
)
public:
void Activate(
    int campaignItemId, 
    DateTime timestamp
)
public function Activate(
    campaignItemId : int, 
    timestamp : DateTime
)

Parameters

  • timestamp
    Type: System..::.DateTime
    The LastModified timestamp of the item to be Activated. If the time stamp does not match the information in the database, it indicates the race condition.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The campaignItemId is less than or equal to zero.

EntityDoesNotExistException

The campaignItemId refers to an entity that does not exist.

EntityStateException

The campaignItemId refers to a campaign item that is deleted or already activated.

Remarks

Activation and Deactivation can be used to manage approvals of Campaign Items and therefore control whether or not they can be deployed to production. Therefore calling Activate requires a higher level of privilege than typically granted to CampaignItem authors.

Permissions

See Also

Reference

CampaignItemManager Class

CampaignItemManager Members

Microsoft.CommerceServer.Marketing Namespace