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 Overrides 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 override void InitializeExpressions(
DisplayableCampaignItemData data,
Dictionary<string, Expression> localExpressions,
bool loadedFromDB
)
protected public:
virtual void InitializeExpressions(
DisplayableCampaignItemData^ data,
Dictionary<String^, Expression^>^ localExpressions,
bool loadedFromDB
) override
protected internal override function InitializeExpressions(
data : DisplayableCampaignItemData,
localExpressions : Dictionary<String, Expression>,
loadedFromDB : boolean
)
Parameters
- data
Type: DisplayableCampaignItemData
Xml serializable representation of the object.
- localExpressions
Type: System.Collections.Generic..::.Dictionary<(Of <(String, Expression>)>)
A dictionary of the local expressions that should be used to initialize local expression references.
- 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).
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.