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 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
- displayTemplateName
Type: System..::.String
The name of the DisplayTemplate to retrieve.
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
- 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.