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
- industryCodeId
Type: System..::.Int32
The Id of the IndustryCode to delete. Must not be less than 1.
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
- 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.