Notes
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
En cas de substitution dans une classe dérivée, obtient le schéma du format d'ID du fournisseur.
Espace de noms: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (dans microsoft.synchronization.dll)
Syntaxe
'Déclaration
Public MustOverride ReadOnly Property IdFormats As SyncIdFormatGroup
'Utilisation
Dim instance As KnowledgeSyncProvider
Dim value As SyncIdFormatGroup
value = instance.IdFormats
public abstract SyncIdFormatGroup IdFormats { get; }
public:
virtual property SyncIdFormatGroup^ IdFormats {
SyncIdFormatGroup^ get () abstract;
}
/** @property */
public abstract SyncIdFormatGroup get_IdFormats ()
public abstract function get IdFormats () : SyncIdFormatGroup
Valeur de propriété
Schéma du format d'ID du fournisseur.
Exemple
L'exemple suivant retourne le schéma du format d'ID d'un fournisseur qui utilise des unités de modification.
// Gets the ID format schema that is defined for this replica.
public override SyncIdFormatGroup IdFormats
{
get
{
SyncIdFormatGroup FormatGroup = new SyncIdFormatGroup();
// Change unit IDs are an enumeration, so they are fixed length and contain one byte.
FormatGroup.ChangeUnitIdFormat.IsVariableLength = false;
FormatGroup.ChangeUnitIdFormat.Length = sizeof(byte);
// Item IDs are of SyncGlobalId type, so they are fixed length and contain a ulong prefix plus a Guid.
FormatGroup.ItemIdFormat.IsVariableLength = false;
FormatGroup.ItemIdFormat.Length = (ushort)(sizeof(ulong) + Marshal.SizeOf(typeof(Guid)));
// Replica IDs are the absolute path to the item store, so they are variable length with maximum
// length equal to the maximum length of a path.
FormatGroup.ReplicaIdFormat.IsVariableLength = true;
FormatGroup.ReplicaIdFormat.Length = 260 * sizeof(char);
return FormatGroup;
}
}
Voir aussi
Référence
Classe KnowledgeSyncProvider
Membres KnowledgeSyncProvider
Espace de noms Microsoft.Synchronization