Dispose Method (Boolean)
Collapse the table of content
Expand the table of content

DataContext.Dispose Method (Boolean)


Releases the unmanaged resources used by the DataContext class and optionally releases the managed resource.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

protected virtual void Dispose(
	bool disposing


Type: System.Boolean

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

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
© 2015 Microsoft