SyncContext.MaxAnchor Property

Gets or sets a SyncAnchor object that represents the largest anchor value for a set of changes when changes synchronized in batches.

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

Syntax

'Declaration
Public Property MaxAnchor As SyncAnchor
    Get
    Set
'Usage
Dim instance As SyncContext
Dim value As SyncAnchor

value = instance.MaxAnchor

instance.MaxAnchor = value
public SyncAnchor MaxAnchor { get; set; }
public:
property SyncAnchor^ MaxAnchor {
    SyncAnchor^ get ();
    void set (SyncAnchor^ value);
}
member MaxAnchor : SyncAnchor with get, set
function get MaxAnchor () : SyncAnchor
function set MaxAnchor (value : SyncAnchor)

Property Value

Type: Microsoft.Synchronization.Data.SyncAnchor
A SyncAnchor object that represents the largest anchor value for a set of changes.

Remarks

Sync Framework enables applications to download batches of changes to the client (batching is not supported on upload). Batching is enabled by specifying a value for the BatchSize property, and creating a command for the SelectNewAnchorCommand property that can return anchor values for each batch of changes.

The maximum anchor value is used to batch changes during the download from the server to the client. When the maximum anchor value is equal to NewAnchor, the final batch has been processed. For more information, see How to: Specify the Order and Batch Size of Changes.

See Also

Reference

SyncContext Class

Microsoft.Synchronization.Data Namespace