Share via


GetDisplayTemplateByName Method

Retrieves an existing DisplayTemplate as identified by the specified name.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetDisplayTemplateByName ( _
    displayTemplateName As String _
) As DisplayTemplateData
'Usage
Dim instance As MarketingWebService
Dim displayTemplateName As String
Dim returnValue As DisplayTemplateData

returnValue = instance.GetDisplayTemplateByName(displayTemplateName)
[WebMethodAttribute]
public virtual DisplayTemplateData GetDisplayTemplateByName(
    string displayTemplateName
)
[WebMethodAttribute]
public:
virtual DisplayTemplateData^ GetDisplayTemplateByName(
    String^ displayTemplateName
)
public function GetDisplayTemplateByName(
    displayTemplateName : String
) : DisplayTemplateData

Parameters

Return Value

Type: DisplayTemplateData
The DisplayTemplateData associated with the displayTemplateName.

Exceptions

Exception Condition
ArgumentNullException

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

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

No item exists with this displayTemplateName.

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