共用方式為


IDbConnectionInterceptor.StateGetting 方法

定義

在擷取之前 State 呼叫。

public 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
Public Sub StateGetting (connection As DbConnection, interceptionContext As DbConnectionInterceptionContext(Of ConnectionState))

參數

connection
DbConnection

連接。

interceptionContext
DbConnectionInterceptionContext<ConnectionState>

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

適用於