Share via


Save Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Saves changes made to the current DisplaySize object.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub Save
'Usage
Dim instance As DisplaySize

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

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentOutOfRangeException

The Id of the DisplaySize is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested updates.

DuplicateEntityNameException

A DisplaySize 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

This inserts or updates this object in the database. Save changes to the database. Save can be used to add a new DisplaySize to the database or update an existing DisplaySize in the database.

Permissions

See Also

Reference

DisplaySize Class

DisplaySize Members

Microsoft.CommerceServer.Marketing Namespace