Condividi tramite


SPUsageProvider.ExecuteReader Method

Executes a Transact-SQL query that returns a rowset.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overridable Function ExecuteReader ( _
    command As SqlCommand _
) As SqlDataReader
'Usage
Dim instance As SPUsageProvider
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
SqlDataReader object.

Implements

ILoggingProvider.ExecuteReader(SqlCommand)

Remarks

The [System.Data.CommandBehavior.CloseConnection] behavior is enforced.

Warning

This member function is not implemented.

See Also

Reference

SPUsageProvider Class

SPUsageProvider Members

Microsoft.SharePoint.Administration Namespace