TransactionHandler.Disposed 方法 (DbConnection, DbConnectionInterceptionContext)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
可以在衍生類別內實作。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Overridable Sub Disposed ( _
connection As DbConnection, _
interceptionContext As DbConnectionInterceptionContext _
)
'用途
Dim instance As TransactionHandler
Dim connection As DbConnection
Dim interceptionContext As DbConnectionInterceptionContext
instance.Disposed(connection, interceptionContext)
public virtual void Disposed(
DbConnection connection,
DbConnectionInterceptionContext interceptionContext
)
public:
virtual void Disposed(
DbConnection^ connection,
DbConnectionInterceptionContext^ interceptionContext
)
abstract Disposed :
connection:DbConnection *
interceptionContext:DbConnectionInterceptionContext -> unit
override Disposed :
connection:DbConnection *
interceptionContext:DbConnectionInterceptionContext -> unit
public function Disposed(
connection : DbConnection,
interceptionContext : DbConnectionInterceptionContext
)
參數
- connection
類型:System.Data.Common.DbConnection
已處置的連接。
- interceptionContext
類型:DbConnectionInterceptionContext
與此呼叫相關聯的內容資訊。