共用方式為


IDbConnectionInterceptor.ConnectionStringGetting 方法

定義

在擷取之前 ConnectionString 呼叫。

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

參數

connection
DbConnection

連接。

interceptionContext
DbConnectionInterceptionContext<String>

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

適用於