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
command
Type: System.Data.SqlClient.SqlCommandA SqlCommand object containing the Transact-SQL query to execute.
Return Value
Type: System.Data.SqlClient.SqlDataReader
Returns SqlDataReader.
Implements
ILoggingProvider.ExecuteReader(SqlCommand)
Remarks
Connections are automatically closed when executing this method.