Freigeben über


TransactionHandler.ConnectionStringSet-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 ConnectionStringSet ( _
    connection As DbConnection, _
    interceptionContext As DbConnectionPropertyInterceptionContext(Of String) _
)
'Usage
Dim instance As TransactionHandler 
Dim connection As DbConnection 
Dim interceptionContext As DbConnectionPropertyInterceptionContext(Of String)

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

Parameter

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

Siehe auch

Verweis

TransactionHandler Klasse

System.Data.Entity.Infrastructure-Namespace

ConnectionStringSet(DbConnection, DbConnectionPropertyInterceptionContextString)