DbConnectionDispatcher.GetConnectionTimeout 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
所要呼叫內容的選擇性資訊。
傳回
作業的結果,可能已經由攔截器修改。
備註
請注意,這個方法會傳回 屬性的值。 在傳遞至這個方法的攔截內容中無法使用結果,因為攔截內容會在傳遞至攔截器之前先複製。