Freigeben über


TransactionHandler.ConnectionStringGot-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Kann in einer abgeleiteten Klasse implementiert werden.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Overridable Sub ConnectionStringGot ( _
    connection As DbConnection, _
    interceptionContext As DbConnectionInterceptionContext(Of String) _
)
'Usage
Dim instance As TransactionHandler 
Dim connection As DbConnection 
Dim interceptionContext As DbConnectionInterceptionContext(Of String)

instance.ConnectionStringGot(connection, _
    interceptionContext)
public virtual void ConnectionStringGot(
    DbConnection connection,
    DbConnectionInterceptionContext<string> interceptionContext
)
public:
virtual void ConnectionStringGot(
    DbConnection^ connection, 
    DbConnectionInterceptionContext<String^>^ interceptionContext
)
abstract ConnectionStringGot : 
        connection:DbConnection * 
        interceptionContext:DbConnectionInterceptionContext<string> -> unit  
override ConnectionStringGot : 
        connection:DbConnection * 
        interceptionContext:DbConnectionInterceptionContext<string> -> unit
public function ConnectionStringGot(
    connection : DbConnection, 
    interceptionContext : DbConnectionInterceptionContext<String>
)

Parameter

  • interceptionContext
    Typ: DbConnectionInterceptionContext<String>
    Die Kontextinformationen für den Aufruf.

Siehe auch

Verweis

TransactionHandler Klasse

System.Data.Entity.Infrastructure-Namespace

ConnectionStringGot(DbConnection, DbConnectionInterceptionContextString)