执行事务处理 SQL 查询不返回任何行。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Function ExecuteNonQuery ( _
command As SqlCommand _
) As Integer
用法
Dim instance As ILoggingProvider
Dim command As SqlCommand
Dim returnValue As Integer
returnValue = instance.ExecuteNonQuery(command)
int ExecuteNonQuery(
SqlCommand command
)
参数
- command
类型:System.Data.SqlClient.SqlCommand
返回值
类型:System.Int32
返回 Int32。