Share via


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

Return Value

Type: System.Int32
Returns a Int32 representing the number of rows returned by the specified command.

Implements

ILoggingProvider.ExecuteNonQuery(SqlCommand)

See Also

Reference

SPDiagnosticsProvider Class

SPDiagnosticsProvider Members

Microsoft.SharePoint.Diagnostics Namespace