This documentation is archived and is not being maintained.

SqlConnection.RetrieveStatistics Method

Returns a name value pair collection of statistics at the point in time the method is called.

Namespace: System.Data.SqlClient
Assembly: System.Data (in

public IDictionary RetrieveStatistics ()
public IDictionary RetrieveStatistics ()
public function RetrieveStatistics () : IDictionary
Not applicable.

Return Value

Returns a reference of type IDictionary of DictionaryEntry items.

When this method is called, the values retrieved are those at the current point in time. If you continue using the connection, the values are incorrect. You need to re-execute the method to obtain the most current values.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0