Share via


SaveDisplaySize Method

Insert a new DisplaySize (if the identifier is zero), or updates an existing DisplaySize (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 SaveDisplaySize ( _
    size As DisplaySizeData _
) As DisplaySizeData
'Usage
Dim instance As MarketingWebService
Dim size As DisplaySizeData
Dim returnValue As DisplaySizeData

returnValue = instance.SaveDisplaySize(size)
[WebMethodAttribute]
public virtual DisplaySizeData SaveDisplaySize(
    DisplaySizeData size
)
[WebMethodAttribute]
public:
virtual DisplaySizeData^ SaveDisplaySize(
    DisplaySizeData^ size
)
public function SaveDisplaySize(
    size : DisplaySizeData
) : DisplaySizeData

Parameters

  • size
    Type: DisplaySizeData
    The customer data to be saved (set to zero for an insert).

Return Value

Type: DisplaySizeData
A DisplaySizeData with the specified DisplaySize.

Exceptions

Exception Condition
ArgumentNullException

An input argument or one of the required properties is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

size is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityStateException

The display size has been deleted (update).

EntityDoesNotExistException

The size 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 size already exists.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Saves the specified DisplaySize object to the database. Inserts a new DisplaySize (if the identifier is zero), or updates an existing DisplaySize (if the identifier is not zero).

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace