次の方法で共有


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.]

名前空間:  System.Data.Entity.Infrastructure.Interception
アセンブリ:  EntityFramework (EntityFramework.dll)

構文

'宣言
Public Function WithCommandBehavior ( _
    commandBehavior As CommandBehavior _
) As DbCommandInterceptionContext
'使用
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

パラメーター

戻り値

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

関連項目

参照

DbCommandInterceptionContext クラス

System.Data.Entity.Infrastructure.Interception 名前空間