Compartir a través de


InkAnalyzer.Reconcile Method (Int64)

Performs InkAnalyzer reconcilation with a control over how long a reconcile operation takes.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)

Syntax

'Declaration
Public Function Reconcile ( _
    timeLimit As Long _
) As Boolean
'Usage
Dim instance As InkAnalyzer
Dim timeLimit As Long
Dim returnValue As Boolean

returnValue = instance.Reconcile(timeLimit)
public bool Reconcile (
    long timeLimit
)
public:
bool Reconcile (
    long long timeLimit
)
public boolean Reconcile (
    long timeLimit
)
public function Reconcile (
    timeLimit : long
) : boolean
Not applicable.

Parameters

  • timeLimit
    The length of time in milliseconds that the application is willing to wait for a transaction to complete. This is a guideline, not a strict constraint. Valid values are 0 - (max long / 10000). An ArgumentOutOfRange exception will be raised if this method is called with an invalid value.

Return Value

true if there is more to reconcile, false if reconciliation is complete.

Remarks

Users may wish to have control over how long a reconcile operation takes on the UI thread. Calling reconcile with the timeLimit parameter will trigger a transaction that will run until the time limit has been reached or the changelist has been completed. The results event will only be fired when the changelist is complete.

At the end of a transaction the tree is guaranteed to be in a valid state. A valid state is defined by: no children without parents and no parents without children (containers without nodes, leaf nodes without strokes).

PropertiesChanged events and StrokesReparented events will be cached until the end of a transaction and a single event will be raised before Reconcile returns.

At least one transaction will be completed for each call to Reconcile that has a valid time parameter.

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzer Class
InkAnalyzer Members
Microsoft.Ink Namespace