Share via


SPDiagnosticsProvider.ExecuteReader method

Executes a Transact-SQL query that returns a rowset.

Namespace:  Microsoft.SharePoint.Diagnostics
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overridable Function ExecuteReader ( _
    command As SqlCommand _
) As SqlDataReader
'Usage
Dim instance As SPDiagnosticsProvider
Dim command As SqlCommand
Dim returnValue As SqlDataReader

returnValue = instance.ExecuteReader(command)
public virtual SqlDataReader ExecuteReader(
    SqlCommand command
)

Parameters

Return value

Type: System.Data.SqlClient.SqlDataReader
Returns SqlDataReader.

Implements

ILoggingProvider.ExecuteReader(SqlCommand)

Remarks

Connections are automatically closed when executing this method.

See also

Reference

SPDiagnosticsProvider class

SPDiagnosticsProvider members

Microsoft.SharePoint.Diagnostics namespace