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