Share via


GetDisplayTemplate Method

Retrieves an existing DisplayTemplate from the system as identified by the specified identifier.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetDisplayTemplate ( _
    displayTemplateId As Integer _
) As DisplayTemplateData
'Usage
Dim instance As MarketingWebService
Dim displayTemplateId As Integer
Dim returnValue As DisplayTemplateData

returnValue = instance.GetDisplayTemplate(displayTemplateId)
[WebMethodAttribute]
public virtual DisplayTemplateData GetDisplayTemplate(
    int displayTemplateId
)
[WebMethodAttribute]
public:
virtual DisplayTemplateData^ GetDisplayTemplate(
    int displayTemplateId
)
public function GetDisplayTemplate(
    displayTemplateId : int
) : DisplayTemplateData

Parameters

Return Value

Type: DisplayTemplateData
The DisplayTemplateData instance associated with displayTemplateId.

Exceptions

Exception Condition
ArgumentOutOfRangeException

displayTemplateId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

No item exists with this displayTemplateId.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Use this method to retrieve a specific DisplayTemplateData containing the DisplayTemplate object from the database.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace