ObjectContext.Dispose Method

 

Releases the resources used by the object context.

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodDispose()

Releases the resources used by the object context.

System_CAPS_protmethodDispose(Boolean)

Releases the resources used by the object context.


ObjectContext.Dispose Method ()

Releases the resources used by the object context.

[SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly")]
public void Dispose()

ObjectContext.Dispose Method (Boolean)

Releases the resources used by the object context.

protected virtual void Dispose(
	bool disposing
)

Parameters

disposing
Type: System.Boolean

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