SPDiagnosticsProvider.ExecuteNonQuery Method
Executes a Transact-SQL query that does not return any rows.
Namespace: Microsoft.SharePoint.Diagnostics
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Function ExecuteNonQuery ( _
command As SqlCommand _
) As Integer
'Usage
Dim instance As SPDiagnosticsProvider
Dim command As SqlCommand
Dim returnValue As Integer
returnValue = instance.ExecuteNonQuery(command)
public virtual int ExecuteNonQuery(
SqlCommand command
)
Parameters
command
Type: System.Data.SqlClient.SqlCommandA SQLCommand object containing the Transact-SQL query to execute.
Return Value
Type: System.Int32
Returns a Int32 representing the number of rows returned by the specified command.
Implements
ILoggingProvider.ExecuteNonQuery(SqlCommand)