Jaa


InitializeExpressions Method

Initializes all object members that contain expression references.

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

Syntax

'Declaration
Protected Friend Overridable Sub InitializeExpressions ( _
    data As DisplayableCampaignItemData, _
    localExpressions As Dictionary(Of String, Expression), _
    loadedFromDB As Boolean _
)
'Usage
Dim data As DisplayableCampaignItemData
Dim localExpressions As Dictionary(Of String, Expression)
Dim loadedFromDB As Boolean

Me.InitializeExpressions(data, localExpressions, _
    loadedFromDB)
protected internal virtual void InitializeExpressions(
    DisplayableCampaignItemData data,
    Dictionary<string, Expression> localExpressions,
    bool loadedFromDB
)
protected public:
virtual void InitializeExpressions(
    DisplayableCampaignItemData^ data, 
    Dictionary<String^, Expression^>^ localExpressions, 
    bool loadedFromDB
)
protected internal function InitializeExpressions(
    data : DisplayableCampaignItemData, 
    localExpressions : Dictionary<String, Expression>, 
    loadedFromDB : boolean
)

Parameters

  • data
    Type: DisplayableCampaignItemData
    Xml serializable representation of the object.
  • loadedFromDB
    Type: System..::.Boolean
    true if the DisplayableCampaignItem is just loaded from the database; otherwise false.

Remarks

This initialization method is needed to guarantee that local expression references point to the same Expression object where needed (i.e. Target and Condition point to the same local Expression). Classes that inherit from DisplayableCampaignItem should override this method, and use the localExpressions dictionary to initialize all local expression references.

Permissions

See Also

Reference

DisplayableCampaignItem Class

DisplayableCampaignItem Members

Microsoft.CommerceServer.Marketing Namespace