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);
}
member MetadataStoreUpgradeStart : IEvent<EventHandler<UpgradeStartEventArgs>,
    UpgradeStartEventArgs>
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.x 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.x format cannot be reverted to the 1.0 format.

See Also

Reference

SqlMetadataStore Class

Microsoft.Synchronization.MetadataStorage Namespace