Share via


SqlMetadataStore.MetadataStoreUpgradeStart Event

Occurs when the metadata store file format is about to be upgraded.

Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)

Syntax

'Declaration
Public Shared Event MetadataStoreUpgradeStart As EventHandler(Of UpgradeStartEventArgs)
'Usage
Dim handler As EventHandler(Of UpgradeStartEventArgs)

AddHandler SqlMetadataStore.MetadataStoreUpgradeStart, handler
public static event EventHandler<UpgradeStartEventArgs> MetadataStoreUpgradeStart
public:
static event EventHandler<UpgradeStartEventArgs^>^ MetadataStoreUpgradeStart {
    void add (EventHandler<UpgradeStartEventArgs^>^ value);
    void remove (EventHandler<UpgradeStartEventArgs^>^ value);
}
/** @event */
public static void add_MetadataStoreUpgradeStart (EventHandler<UpgradeStartEventArgs> value)

/** @event */
public static void remove_MetadataStoreUpgradeStart (EventHandler<UpgradeStartEventArgs> value)
JScript supports the use of events, but not the declaration of new ones.

Remarks

Sync Framework automatically upgrades metadata store files that are in the 1.0 format to the 2.0 format, unless an event handler for the MetadataStoreUpgradeStart event registered before the metadata store is opened, and the event handler set the SkipUpgrade property to true. Be aware that a file in the 2.0 format cannot be reverted to the 1.0 format.

See Also

Reference

SqlMetadataStore Class
SqlMetadataStore Members
Microsoft.Synchronization.MetadataStorage Namespace