Share via


Save Method (Boolean)

Saves the changes made to this catalog object.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public MustOverride Sub Save ( _
    bypassConcurrencyCheck As Boolean _
)
'Usage
Dim instance As CatalogObject
Dim bypassConcurrencyCheck As Boolean

instance.Save(bypassConcurrencyCheck)
public abstract void Save(
    bool bypassConcurrencyCheck
)
public:
virtual void Save(
    bool bypassConcurrencyCheck
) abstract
public abstract function Save(
    bypassConcurrencyCheck : boolean
)

Parameters

  • bypassConcurrencyCheck
    Type: System..::.Boolean
    true to overwrite the changes made to this object by other users; otherwise, false.

Exceptions

Exception Condition
OptimisticLockException

The object has been changed since it was retrieved. (only if bypassConcurrencyCheck is false)

EntityDoesNotExistException

The object does not exist; most likely, it was deleted since it was retrieveded.

AuthenticationException

The user does not have authorization to save this entity.

Remarks

Use the bypassConcurrencyCheck:

true: Force the save to occur even if the object has been saved since it was retrieved.

false: Do not save if the object has been saved since it was retrieved. If the bypassConcurrencyCheck parameter is false and another user has changed the object then this method will throw an OptimisticLockException exception.

This method will save any changes to the object, including relationships and associations, as well as the item information dataset and other details such as rank associated ranks.

Permissions

See Also

Reference

CatalogObject Class

CatalogObject Members

Save Overload

Microsoft.CommerceServer.Catalog Namespace