Partager via


GeneratePreview Method (String, StringDictionary)

Generate the HTML preview for a campaign item given the template and property set to use for the preview.

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

Syntax

'Declaration
Public Function GeneratePreview ( _
    templateName As String, _
    propertyValues As StringDictionary _
) As String
'Usage
Dim instance As CampaignItemManager
Dim templateName As String
Dim propertyValues As StringDictionary
Dim returnValue As String

returnValue = instance.GeneratePreview(templateName, _
    propertyValues)
public string GeneratePreview(
    string templateName,
    StringDictionary propertyValues
)
public:
String^ GeneratePreview(
    String^ templateName, 
    StringDictionary^ propertyValues
)
public function GeneratePreview(
    templateName : String, 
    propertyValues : StringDictionary
) : String

Parameters

  • templateName
    Type: System..::.String
    The name of the display template to use for previewing

Return Value

Type: System..::.String
A DisplayableCampaignItem containing the HTML or XML for the rendered (formatted) campaign item.

Remarks

Generates the HTML by processing the DisplayTemplate with values from the campaign item.

The propertyValues is a collection of name-value pairs containing context values that should be inserted into the template.

Permissions

See Also

Reference

CampaignItemManager Class

CampaignItemManager Members

GeneratePreview Overload

Microsoft.CommerceServer.Marketing Namespace