다음을 통해 공유


Save Method (Boolean)

Saves the changes made to the current instance 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 ProductCatalog
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 language being removed does not exist in the catalog.

OptimisticLockException

The catalog has been modified by another user.

EntityAlreadyExistsException

One of the languages being added already exists in the catalog.

NotAuthorizedException

The caller is not authorized to perform this operation.

Remarks

Allows force updating the changes to the catalog system

If you make any changes to the current instance of the ProductCatalog object you should call this method to save the changes to the catalog system. If the bypassConcurrencyCheck parameter is true then the changes made to this instance of the ProductCatalog object will be saved to the catalog system even if the catalog information has been modified by another user after the ProductCatalog object was last fetched. If the bypassConcurrencyCheck parameter is false then the changes made to this instance of the ProductCatalog object will be saved to the catalog system only if the catalog information has not been modified by another user. If the bypassConcurrencyCheck parameter is false and changes have been made by another user, an OptimisticLockException exception is thrown.

Permissions

See Also

Reference

ProductCatalog Class

ProductCatalog Members

Save Overload

Microsoft.CommerceServer.Catalog Namespace