Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
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
- 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.
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. |