Freigeben über


TransactionHandler.StateGetting-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 StateGetting ( _
    connection As DbConnection, _
    interceptionContext As DbConnectionInterceptionContext(Of ConnectionState) _
)
'Usage
Dim instance As TransactionHandler 
Dim connection As DbConnection 
Dim interceptionContext As DbConnectionInterceptionContext(Of ConnectionState)

instance.StateGetting(connection, interceptionContext)
public virtual void StateGetting(
    DbConnection connection,
    DbConnectionInterceptionContext<ConnectionState> interceptionContext
)
public:
virtual void StateGetting(
    DbConnection^ connection, 
    DbConnectionInterceptionContext<ConnectionState>^ interceptionContext
)
abstract StateGetting : 
        connection:DbConnection * 
        interceptionContext:DbConnectionInterceptionContext<ConnectionState> -> unit  
override StateGetting : 
        connection:DbConnection * 
        interceptionContext:DbConnectionInterceptionContext<ConnectionState> -> unit
public function StateGetting(
    connection : DbConnection, 
    interceptionContext : DbConnectionInterceptionContext<ConnectionState>
)

Parameter

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

Siehe auch

Verweis

TransactionHandler Klasse

System.Data.Entity.Infrastructure-Namespace

StateGetting(DbConnection, DbConnectionInterceptionContextConnectionState)