次の方法で共有


DbConnectionDispatcher.GetConnectionTimeout メソッド

定義

public virtual int GetConnectionTimeout (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbInterceptionContext interceptionContext);
abstract member GetConnectionTimeout : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> int
override this.GetConnectionTimeout : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> int
Public Overridable Function GetConnectionTimeout (connection As DbConnection, interceptionContext As DbInterceptionContext) As Integer

パラメーター

connection
DbConnection

操作が実行される接続。

interceptionContext
DbInterceptionContext

呼び出しのコンテキストに関するオプションの情報。

戻り値

インターセプターによって変更された可能性がある操作の結果。

注釈

プロパティの値は、このメソッドによって返されることに注意してください。 インターセプターに渡される前にインターセプト コンテキストが複製されるため、このメソッドに渡されるインターセプト コンテキストでは結果を使用できません。

適用対象