asp.net.ph

OleDbCommand.ResetCommandTimeout Method

System.Data.OleDb Namespace   OleDbCommand Class


Resets the CommandTimeout property to its default value.

[ VB ]
Public Sub ResetCommandTimeout ( )

[ C# ]
public void ResetCommandTimeout ( );

[ C++ ]
public: void ResetCommandTimeout ( );

[ JScript ]
public function ResetCommandTimeout ( );

Remarks

The default value of the CommandTimeout is 30 seconds.

Example

The following example illustrates using the ResetCommandTimeout method.

void ResetCommandTimeoutDemo ( string query, OleDbConnection myConn ) {
   OleDbCommand myCommand = new OleDbCommand ( query, myConn );
   myCommand.CommandTimeout = 15;
   Response.Write ( myCommand.CommandTimeout.ToString ( ) );

   myCommand.ResetCommandTimeout ( );
   Response.Write ( myCommand.CommandTimeout.ToString ( ) );
}
  C# VB

See Also

OleDbCommand Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph