Freigeben über


ObjectContext.Dispose-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Gibt die vom Objektkontext verwendeten Ressourcen frei.

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

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly")> _
Public Sub Dispose
'Usage
Dim instance As ObjectContext

instance.Dispose()
[SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly")]
public void Dispose()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1063:ImplementIDisposableCorrectly")]
public:
virtual void Dispose() sealed
[<SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly")>]
abstract Dispose : unit -> unit 
[<SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly")>]
override Dispose : unit -> unit
public final function Dispose()

Implements

IDisposable.Dispose()

Siehe auch

Verweis

ObjectContext Klasse

Dispose-Überladung

System.Data.Entity.Core.Objects-Namespace