Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Saves changes made to the current instance.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub Save
'Usage
Dim instance As IndustryCode
instance.Save()
public void Save()
public:
void Save()
public function Save()
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The xml serializable IndustryCodeData received at the web service was nullNothingnullptra null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | The Id of the IndustryCode is less than zero. |
NotAuthorizedException | The user is not authorized to perform the requested updates. |
DuplicateEntityNameException | An IndustryCode with the specified Name already exists with in the context of the Campaign specified by Name. |
StringLengthValidationException | A string property is too long or cannot be set to empty string. See individual properties for details. |
PropertyNullValidationException | A string property cannot be set to nullNothingnullptra null reference (Nothing in Visual Basic). See individual properties for details. |
MinimumValueValidationException | One or more of the numeric property values of the current discount object was set to a value less than the minimum allowed. |
Remarks
Save can be used to add a new IndustryCode to the database or update an existing IndustryCode in the database.
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.