CampaignItem Constructor
Initializes a new instance of the CampaignItem class using an XML object representing a CampaignItem.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Protected Friend Sub New ( _
parent As CampaignItemManager, _
xmlSerializable As CampaignItemData, _
loadedFromDB As Boolean _
)
'Usage
Dim parent As CampaignItemManager
Dim xmlSerializable As CampaignItemData
Dim loadedFromDB As Boolean
Dim instance As New CampaignItem(parent, _
xmlSerializable, loadedFromDB)
protected internal CampaignItem(
CampaignItemManager parent,
CampaignItemData xmlSerializable,
bool loadedFromDB
)
protected public:
CampaignItem(
CampaignItemManager^ parent,
CampaignItemData^ xmlSerializable,
bool loadedFromDB
)
protected internal function CampaignItem(
parent : CampaignItemManager,
xmlSerializable : CampaignItemData,
loadedFromDB : boolean
)
Parameters
- parent
Type: Microsoft.CommerceServer.Marketing..::.CampaignItemManager
Parent CampaignItemManager object.
- xmlSerializable
Type: CampaignItemData
An XML object of type CampaignItemData representing a CampaignItem object. This is typically an object that was retrieved by the web service.
- loadedFromDB
Type: System..::.Boolean
true if the PromoCodeDefinition is just loaded from the database; otherwise false.
Remarks
Represents the base class for all campaign item types. Provides the base functionality shared by all campaign items.
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.