Share via


Save Method (Boolean)

Saves changes made to the CatalogDefinition 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 CatalogDefinition
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

A property that is being added to the definition does not exist in the catalog system.

EntityDoesNotExistException

The definition does not exist in the catalog system.

EntityAlreadyExistsException

A property that is being added to the definition already exists in the definition.

EntityDoesNotExistException

A property that is being removed from the definition does not exist in the definition.

NotAuthorizedException

The caller is not authorized to perform this operation.

Remarks

This method should be called to save any changes made to the catalog definition. If bypassConcurrencyCheck is false and the property has been updated by another user then this method will throw an OptimisticLockException exception. This method saves the changes made to the Catalog Definition and refreshes the internal data. In addition, this method makes a call to the Web Service to save the updated definition.

Permissions

See Also

Reference

CatalogDefinition Class

CatalogDefinition Members

Save Overload

Microsoft.CommerceServer.Catalog Namespace