Share via


DbConnectionDispatcher.GetConnectionString Method

Definition

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

Parameters

connection
DbConnection

The connection on which the operation will be executed.

interceptionContext
DbInterceptionContext

Optional information about the context of the call being made.

Returns

The result of the operation, which may have been modified by interceptors.

Remarks

Note that the value of the property is returned by this method. The result is not available in the interception context passed into this method since the interception context is cloned before being passed to interceptors.

Applies to