Share via


DataSetSurrogate.Dispose Method (Boolean)

Releases the unmanaged resources used by the DataSetSurrogate and optionally releases the managed resources.

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

Syntax

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

Me.Dispose(cleanup)
protected virtual void Dispose(
    bool cleanup
)
protected:
virtual void Dispose(
    bool cleanup
)
abstract Dispose : 
        cleanup:bool -> unit 
override Dispose : 
        cleanup:bool -> unit 
protected function Dispose(
    cleanup : boolean
)

Parameters

  • cleanup
    Type: System.Boolean
    true to release both managed and unmanaged resources; false to release only unmanaged resources.

See Also

Reference

DataSetSurrogate Class

Dispose Overload

Microsoft.Synchronization.Data Namespace