共用方式為


IDbConnectionInterceptor.StateGot 方法

定義

擷取之後 State 呼叫。

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

參數

connection
DbConnection

連接。

interceptionContext
DbConnectionInterceptionContext<ConnectionState>

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

適用於