Partilhar via


Save Method (Boolean)

Saves the changes made to the CatalogProperty object to the catalog system.

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

Syntax

'Declaration
Public Overrides Sub Save ( _
    bypassConcurrencyCheck As Boolean _
)
'Usage
Dim instance As CatalogProperty
Dim bypassConcurrencyCheck As Boolean

instance.Save(bypassConcurrencyCheck)
public override void Save(
    bool bypassConcurrencyCheck
)
public:
virtual void Save(
    bool bypassConcurrencyCheck
) override
public override 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
EntityDoesNotExistException

The property does not exist in the catalog system.

OptimisticLockException

The property has been updated by another user.

NotAuthorizedException

The caller is not authorized to perform this operation.

Remarks

This method should be called to save any changes made to this instance of the property object to the catalog system. If bypassConcurrencyCheck is falase and the property has been updated by another user then this method will throw an OptimisticLockException exception. You should get the CatalogProperty object again, apply the changes to the new object and then save the changes.

Permissions

See Also

Reference

CatalogProperty Class

CatalogProperty Members

Save Overload

Microsoft.CommerceServer.Catalog Namespace