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
- propertyValues
Type: System.Collections.Specialized..::.StringDictionary
Key value pairs representing the display properties and their values
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
- 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.