Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- displayTemplateName
Type: System..::.String
The name of the DisplayTemplate to retrieve.
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
- 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.