Share via


Delete Method

Permanently deletes an existing IndustryCode record.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub Delete ( _
    industryCodeId As Integer _
)
'Usage
Dim instance As IndustryCodeManager
Dim industryCodeId As Integer

instance.Delete(industryCodeId)
public void Delete(
    int industryCodeId
)
public:
void Delete(
    int industryCodeId
)
public function Delete(
    industryCodeId : int
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

industryCodeId is not valid.

EntityDoesNotExistException

The entity referred to by industryCodeId does not exist.

EntityReferencedException

The IndustryCode cannot be deleted because entities that depend on it exist.

NotAuthorizedException

The user is not authorized to perform the requested operation

Remarks

Delete a single IndustryCode, represented by a unique identifier.

Permissions

See Also

Reference

IndustryCodeManager Class

IndustryCodeManager Members

Microsoft.CommerceServer.Marketing Namespace