SaveIndustryCode Method
Insert a new IndustryCode (if the identifier is zero), or updates an existing IndustryCode (if the identifier is not zero).
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Function SaveIndustryCode ( _
industryCode As IndustryCodeData _
) As IndustryCodeData
'Usage
Dim instance As MarketingWebService
Dim industryCode As IndustryCodeData
Dim returnValue As IndustryCodeData
returnValue = instance.SaveIndustryCode(industryCode)
[WebMethodAttribute]
public virtual IndustryCodeData SaveIndustryCode(
IndustryCodeData industryCode
)
[WebMethodAttribute]
public:
virtual IndustryCodeData^ SaveIndustryCode(
IndustryCodeData^ industryCode
)
public function SaveIndustryCode(
industryCode : IndustryCodeData
) : IndustryCodeData
Parameters
- industryCode
Type: IndustryCodeData
The Industry Code data to be saved (set to zero for an insert).
Return Value
Type: IndustryCodeData
A IndustryCode with the specified IndustryCode.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | An input argument or one of the required properties is nullNothingnullptra null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | industryCode is less than zero. |
NotAuthorizedException | The user is not authorized to perform the requested operation. |
EntityStateException | The industryCode has been deleted (update). |
EntityDoesNotExistException | The industryCode being updated does not exist. |
StringLengthValidationException | One if the property values is too long or too short. |
DuplicateEntityNameException | An entity with this name already exists. |
DuplicateEntityIdException | An entity with this industryCode already exists. |
DatabaseIntegrityException | A serious integrity issue with the database exists. |
Remarks
Saves the specified IndustryCode object to the database. Inserts a new IndustryCode (if the identifier is zero), or updates an existing IndustryCode (if the identifier is not zero).
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.