Share via


MetadataStore.CommitTransaction Method

When overridden in a derived class, commits an explicit transaction that has already started on the metadata store.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

Syntax

'Declaration
Public MustOverride Sub CommitTransaction
'Usage
Dim instance As MetadataStore

instance.CommitTransaction()
public abstract void CommitTransaction()
public:
virtual void CommitTransaction() abstract
abstract CommitTransaction : unit -> unit 
public abstract function CommitTransaction()

Exceptions

Exception Condition
InvalidOperationException

A metadata store has not been opened or created, or a transaction was not started.

Remarks

When this method is called, all changes that are made after the previous call to BeginTransaction are committed to the metadata store.

See Also

Reference

MetadataStore Class

Microsoft.Synchronization.MetadataStorage Namespace