Share via


DeleteIndustryCode Method

Deletes a specified IndustryCode.

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

Syntax

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

instance.DeleteIndustryCode(industryCodeId)
[WebMethodAttribute]
public virtual void DeleteIndustryCode(
    int industryCodeId
)
[WebMethodAttribute]
public:
virtual void DeleteIndustryCode(
    int industryCodeId
)
public function DeleteIndustryCode(
    industryCodeId : int
)

Parameters

  • industryCodeId
    Type: System..::.Int32
    The identifier of the Industry Code to be deleted.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The industryCodeId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

The industryCodeId does not exist.

EntityHasChildrenException

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

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Deletes an Industry Code. The Industry Code represents a code for one of the industries, like Aviation or Food.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace