Freigeben über


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

instance.ConnectionStringSetting(connection, _
    interceptionContext)
public virtual void ConnectionStringSetting(
    DbConnection connection,
    DbConnectionPropertyInterceptionContext<string> interceptionContext
)
public:
virtual void ConnectionStringSetting(
    DbConnection^ connection, 
    DbConnectionPropertyInterceptionContext<String^>^ interceptionContext
)
abstract ConnectionStringSetting : 
        connection:DbConnection * 
        interceptionContext:DbConnectionPropertyInterceptionContext<string> -> unit  
override ConnectionStringSetting : 
        connection:DbConnection * 
        interceptionContext:DbConnectionPropertyInterceptionContext<string> -> unit
public function ConnectionStringSetting(
    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

ConnectionStringSetting(DbConnection, DbConnectionPropertyInterceptionContextString)