Delete Method
Permanently deletes a DisplayTemplate object.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub Delete ( _
displayTemplateId As Integer _
)
'Usage
Dim instance As DisplayTemplateManager
Dim displayTemplateId As Integer
instance.Delete(displayTemplateId)
public void Delete(
int displayTemplateId
)
public:
void Delete(
int displayTemplateId
)
public function Delete(
displayTemplateId : int
)
Parameters
- displayTemplateId
Type: System..::.Int32
The Id of the DisplayTemplate to delete. Must not be less than 1.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | displayTemplateId is not valid. |
EntityDoesNotExistException | The entity referred to by displayTemplateId does not exist. |
EntityReferencedException | The DisplayTemplate cannot be deleted because entities that depend on it exist. |
NotAuthorizedException | The user is not authorized to perform the requested operation. |
Remarks
Permanently deletes an existing DisplayTemplate object.
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.