Condividi tramite


Metodo DbCommandInterceptionContext.WithCommandBehavior

[This page is specific to the Entity Framework version 6.0 Beta. The latest version is available as the 'Entity Framework' NuGet package. For more information, see Entity Framework Releases and Versioning.]

Spazio dei nomi  System.Data.Entity.Infrastructure.Interception
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Function WithCommandBehavior ( _
    commandBehavior As CommandBehavior _
) As DbCommandInterceptionContext
'Utilizzo
Dim instance As DbCommandInterceptionContext 
Dim commandBehavior As CommandBehavior 
Dim returnValue As DbCommandInterceptionContext 

returnValue = instance.WithCommandBehavior(commandBehavior)
public DbCommandInterceptionContext WithCommandBehavior(
    CommandBehavior commandBehavior
)
public:
DbCommandInterceptionContext^ WithCommandBehavior(
    CommandBehavior commandBehavior
)
member WithCommandBehavior : 
        commandBehavior:CommandBehavior -> DbCommandInterceptionContext
public function WithCommandBehavior(
    commandBehavior : CommandBehavior
) : DbCommandInterceptionContext

Parametri

Valore restituito

Tipo: System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext

Vedere anche

Riferimento

DbCommandInterceptionContext Classe

Spazio dei nomi System.Data.Entity.Infrastructure.Interception