Save Method

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 CampaignEventType

instance.Save()
public void Save()
public:
void Save()
public function Save()

Exceptions

Exception Condition
ArgumentNullException

The xml serializable data received at the web service was nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

The unique identifier of the CampaignEventType is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested updates.

DuplicateEntityNameException

A CampaignEventType with the specified Name already exists with in the context of the Campaign specified by CampaignName.

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 CampaignEventType to the database or update an existing CampaignEventType in the database.

Permissions

See Also

Reference

CampaignEventType Class

CampaignEventType Members

Microsoft.CommerceServer.Marketing Namespace