Udostępnij za pośrednictwem


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
'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);
}
/** @property */
public SyncAnchor get_MaxAnchor ()

/** @property */
public void set_MaxAnchor (SyncAnchor value)
public function get MaxAnchor () : SyncAnchor

public function set MaxAnchor (value : SyncAnchor)

Property Value

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
SyncContext Members
Microsoft.Synchronization.Data Namespace