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.
- 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). Classes that inherit from DisplayableCampaignItem should override this method, and use the localExpressions dictionary to initialize all local expression references.
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.