RelationalSyncProvider.MemoryDataCacheSize Property
Gets or sets the maximum amount of memory (in KB) that Sync Framework uses to cache changes before spooling those changes to disk.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public Property MemoryDataCacheSize As UInteger
Get
Set
'Usage
Dim instance As RelationalSyncProvider
Dim value As UInteger
value = instance.MemoryDataCacheSize
instance.MemoryDataCacheSize = value
public uint MemoryDataCacheSize { get; set; }
public:
property unsigned int MemoryDataCacheSize {
unsigned int get ();
void set (unsigned int value);
}
member MemoryDataCacheSize : uint32 with get, set
function get MemoryDataCacheSize () : uint
function set MemoryDataCacheSize (value : uint)
Property Value
Type: System.UInt32
The maximum amount of memory (in KB) that Sync Framework uses to cache changes before spooling those changes to disk.
Exceptions
Exception | Condition |
---|---|
DbSyncException | A synchronization is in progress. |
Remarks
This property is used when an application requires that changes be delivered in batches. Batching is useful in scenarios similar to the following one:
A large number of clients that use SqlCeSyncProvider synchronize periodically with a server that uses SqlSyncProvider.
Each client has a limited amount of memory and disk space.
The connections between the server and clients are low bandwidth and intermittent, often resulting in long synchronization times and dropped connections.
The size of the changes (in KB) for a typical synchronization session is large.
For more information, see How to: Deliver Changes in Batches (SQL Server).