SimpleSyncServices Constructor

Initializes a new instance of the SimpleSyncServices class that contains ID formats, a metadata store with a culture setting, a replica ID, and a provider version.

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

public:
SimpleSyncServices(
	SyncIdFormatGroup^ idFormats, 
	MetadataStore^ metadataStore, 
	SyncId^ replicaId, 
	CultureInfo^ culture, 
	short providerVersion
)

Parameters

idFormats
Type: Microsoft.Synchronization::SyncIdFormatGroup
A SyncIdFormatGroup object that is used to define the format of replica and item IDs.
metadataStore
Type: Microsoft.Synchronization.MetadataStorage::MetadataStore
A MetadataStore object that represents the store in which the replica keeps metadata.
replicaId
Type: Microsoft.Synchronization::SyncId
A SyncId object that contains the ID of the replica.
culture
Type: System.Globalization::CultureInfo
A CultureInfo object that represents the culture that is used for string comparisons. This should match the culture of the metadata store.
providerVersion
Type: System::Int16
The version number for the simple provider.

ExceptionCondition
ArgumentNullException

idFormats, metadataStore, replicaId, or culture is a nullptr.

MetadataStoreVersion2RequiredException

The version of the metadata storage assembly is not supported.

Show: