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