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