GetDisplayTemplate Method (Int32)
Retrieves an existing DisplayTemplate, as identified by the Template's unique identifier.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function GetDisplayTemplate ( _
displayTemplateId As Integer _
) As DisplayTemplate
'Usage
Dim instance As DisplayTemplateManager
Dim displayTemplateId As Integer
Dim returnValue As DisplayTemplate
returnValue = instance.GetDisplayTemplate(displayTemplateId)
public DisplayTemplate GetDisplayTemplate(
int displayTemplateId
)
public:
DisplayTemplate^ GetDisplayTemplate(
int displayTemplateId
)
public function GetDisplayTemplate(
displayTemplateId : int
) : DisplayTemplate
Parameters
- displayTemplateId
Type: System..::.Int32
The Id of the DisplayTemplate to retrieve. Must not be less than 1.
Return Value
Type: Microsoft.CommerceServer.Marketing..::.DisplayTemplate
The DisplayTemplate associated with the displayTemplateId, retrieved from the database.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | displayTemplateId was less than 1. |
EntityDoesNotExistException | The requested DisplayTemplate does not exist. |
Remarks
Use this method to retrieve a specific DisplayTemplate object from the database.
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.