다음을 통해 공유


DeleteDisplayTemplate Method

Deletes a specified DisplayTemplate.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub DeleteDisplayTemplate ( _
    displayTemplateId As Integer _
)
'Usage
Dim instance As MarketingWebService
Dim displayTemplateId As Integer

instance.DeleteDisplayTemplate(displayTemplateId)
[WebMethodAttribute]
public virtual void DeleteDisplayTemplate(
    int displayTemplateId
)
[WebMethodAttribute]
public:
virtual void DeleteDisplayTemplate(
    int displayTemplateId
)
public function DeleteDisplayTemplate(
    displayTemplateId : int
)

Parameters

  • displayTemplateId
    Type: System..::.Int32
    The identifier of the display size to be deleted.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The displayTemplateId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

The displayTemplateId not exist.

EntityHasChildrenException

The displayTemplateId has child entities (campaign items) that depend on it.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Deletes a display template. The DisplayTemplate describes one of the display templates defined in the database. The DisplayTemplate represents a template that describes how a campaign item should be displayed.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace