Share via


SyncAgent.Dispose Method

Releases all resources used by the SyncAgent.

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

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As SyncAgent

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
abstract Dispose : unit -> unit 
override Dispose : unit -> unit 
public final function Dispose()

Implements

IDisposable.Dispose()

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 Framework, you must call these methods explicitly if you want to dispose of these objects.

See Also

Reference

SyncAgent Class

Dispose Overload

Microsoft.Synchronization Namespace