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




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