asp.net.ph

OleDbCommand Constructor ( )

System.Data.OleDb Namespace   OleDbCommand Class


Initializes a new instance of the OleDbCommand class.

[ VB ]
Overloads Public Sub New ( )

[ C# ]
public OleDbCommand ( );

[ C++ ]
public: OleDbCommand ( );

[ JScript ]
public function OleDbCommand ( );

Remarks

The following table shows initial property values for an OleDbCommand instantiated with this constructor.

Properties Initial Value
CommandText empty string ( "" )
CommandTimeout 30
CommandType Text
Connection null

You can change the value for any of these parameters by setting the related property.

Example

The following example initializes an OleDbCommand with default parameters, then sets one of its properties.

OleDbCommand myCommand = new OleDbCommand ( );
myCommand.CommandTimeout = 20;
  C# VB

See Also

OleDbCommand Members   OleDbCommand Constructor Overload List Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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