Share via


GetDisplayTemplate Method (String)

Retrieves an existing DisplayTemplate with the specified name from the database.

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

Syntax

'Declaration
Public Function GetDisplayTemplate ( _
    displayTemplateName As String _
) As DisplayTemplate
'Usage
Dim instance As DisplayTemplateManager
Dim displayTemplateName As String
Dim returnValue As DisplayTemplate

returnValue = instance.GetDisplayTemplate(displayTemplateName)
public DisplayTemplate GetDisplayTemplate(
    string displayTemplateName
)
public:
DisplayTemplate^ GetDisplayTemplate(
    String^ displayTemplateName
)
public function GetDisplayTemplate(
    displayTemplateName : String
) : DisplayTemplate

Parameters

Return Value

Type: Microsoft.CommerceServer.Marketing..::.DisplayTemplate
The DisplayTemplate associated with the displayTemplateName, retrieved from the database.

Exceptions

Exception Condition
PropertyNullValidationException

displayTemplateName was nullNothingnullptra null reference (Nothing in Visual Basic).

StringLengthValidationException

displayTemplateName was less than 1 or more than 50 chars in length.

Remarks

Use this method to retrieve a specific DisplayTemplate.

Permissions

See Also

Reference

DisplayTemplateManager Class

DisplayTemplateManager Members

GetDisplayTemplate Overload

Microsoft.CommerceServer.Marketing Namespace