Share via


SyncAgent.Dispose Method (Boolean)

Releases the unmanaged resources used by the SyncAgent, and optionally releases the managed resources.

Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Usage
Dim disposing As Boolean

Me.Dispose(disposing)
protected virtual void Dispose (
    bool disposing
)
protected:
virtual void Dispose (
    bool disposing
)
protected void Dispose (
    boolean disposing
)
protected function Dispose (
    disposing : boolean
)

Parameters

  • disposing
    true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

In Synchronization Services for ADO.NET 1.0, calling this method on a SyncAgent object in turn calls the client provider Dispose method and server provider Dispose method. In Sync Services for ADO.NET 2.0, you must call these methods explicitly if you want to dispose of these objects.

See Also

Reference

SyncAgent Class
SyncAgent Members
Microsoft.Synchronization Namespace