共用方式為


TransactionHandler.StateGetting 方法

定義

可以在衍生類別中實作。

public virtual void StateGetting(System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<System.Data.ConnectionState> interceptionContext);
abstract member StateGetting : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<System.Data.ConnectionState> -> unit
override this.StateGetting : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<System.Data.ConnectionState> -> unit
Public Overridable Sub StateGetting (connection As DbConnection, interceptionContext As DbConnectionInterceptionContext(Of ConnectionState))

參數

connection
DbConnection

連接。

interceptionContext
DbConnectionInterceptionContext<ConnectionState>

與呼叫相關聯的內容資訊。

實作

適用於

另請參閱