共用方式為


DbConnectionDispatcher.GetServerVersion 方法

定義

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

參數

connection
DbConnection

執行作業的連線。

interceptionContext
DbInterceptionContext

所要呼叫內容的選擇性資訊。

傳回

作業的結果,可能已被攔截器修改。

備註

請注意,這個方法會傳回 屬性的值。 在傳遞至此方法的攔截內容中無法使用結果,因為攔截內容會在傳遞至攔截器之前先複製。

適用於