DeleteList Method
Deletes a specified list.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Sub DeleteList ( _
listId As Guid _
)
'Usage
Dim instance As MarketingWebService
Dim listId As Guid
instance.DeleteList(listId)
[WebMethodAttribute]
public virtual void DeleteList(
Guid listId
)
[WebMethodAttribute]
public:
virtual void DeleteList(
Guid listId
)
public function DeleteList(
listId : Guid
)
Parameters
- listId
Type: System..::.Guid
The list identifier.
Exceptions
Exception | Condition |
---|---|
InvalidCatalogOperationException | Attempted to delete the global opt-out-list. |
EntityStateException | List is not available. |
DatabaseIntegrityException | A serious integrity issue with the database exists. |
Remarks
Deletes a list. If the list is busy with an operation, an exception is thrown. The associated list data is also deleted.
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.