DbCommandDispatcher.NonQueryAsync 方法
[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 Overridable Function NonQueryAsync ( _
command As DbCommand, _
interceptionContext As DbCommandInterceptionContext, _
cancellationToken As CancellationToken _
) As Task(Of Integer)
'用途
Dim instance As DbCommandDispatcher
Dim command As DbCommand
Dim interceptionContext As DbCommandInterceptionContext
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of Integer)
returnValue = instance.NonQueryAsync(command, _
interceptionContext, cancellationToken)
public virtual Task<int> NonQueryAsync(
DbCommand command,
DbCommandInterceptionContext interceptionContext,
CancellationToken cancellationToken
)
public:
virtual Task<int>^ NonQueryAsync(
DbCommand^ command,
DbCommandInterceptionContext^ interceptionContext,
CancellationToken cancellationToken
)
abstract NonQueryAsync :
command:DbCommand *
interceptionContext:DbCommandInterceptionContext *
cancellationToken:CancellationToken -> Task<int>
override NonQueryAsync :
command:DbCommand *
interceptionContext:DbCommandInterceptionContext *
cancellationToken:CancellationToken -> Task<int>
public function NonQueryAsync(
command : DbCommand,
interceptionContext : DbCommandInterceptionContext,
cancellationToken : CancellationToken
) : Task<int>
參數
- command
型別:System.Data.Common.DbCommand
- interceptionContext
型別:System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext
- cancellationToken
型別:System.Threading.CancellationToken
傳回值
型別:System.Threading.Tasks.Task<Int32>