Dela via


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)

Syntax

'Declaration
Public Sub New ( _
    idFormats As SyncIdFormatGroup, _
    metadataStore As MetadataStore, _
    replicaId As SyncId, _
    culture As CultureInfo, _
    providerVersion As Short _
)
'Usage
Dim idFormats As SyncIdFormatGroup
Dim metadataStore As MetadataStore
Dim replicaId As SyncId
Dim culture As CultureInfo
Dim providerVersion As Short

Dim instance As New SimpleSyncServices(idFormats, _
    metadataStore, replicaId, culture, _
    providerVersion)
public SimpleSyncServices(
    SyncIdFormatGroup idFormats,
    MetadataStore metadataStore,
    SyncId replicaId,
    CultureInfo culture,
    short providerVersion
)
public:
SimpleSyncServices(
    SyncIdFormatGroup^ idFormats, 
    MetadataStore^ metadataStore, 
    SyncId^ replicaId, 
    CultureInfo^ culture, 
    short providerVersion
)
new : 
        idFormats:SyncIdFormatGroup * 
        metadataStore:MetadataStore * 
        replicaId:SyncId * 
        culture:CultureInfo * 
        providerVersion:int16 -> SimpleSyncServices
public function SimpleSyncServices(
    idFormats : SyncIdFormatGroup, 
    metadataStore : MetadataStore, 
    replicaId : SyncId, 
    culture : CultureInfo, 
    providerVersion : short
)

Parameters

  • providerVersion
    Type: System.Int16
    The version number for the simple provider.

Exceptions

Exception Condition
ArgumentNullException

idFormats, metadataStore, replicaId, or culture is a null reference (Nothing in Visual Basic).

MetadataStoreVersion2RequiredException

The version of the metadata storage assembly is not supported.

See Also

Reference

SimpleSyncServices Class

Microsoft.Synchronization.SimpleProviders Namespace