Initializes a new instance of the ADOCommand class with no parameters.
[Visual Basic] Overloads Public Sub New() [C#] public ADOCommand(); [C++] public: ADOCommand(); [JScript] public function ADOCommand();
When an instance of ADOCommand is created, the following read/write properties are set to initial values.
Properties | Initial Value |
---|---|
CommandText | empty string ("") |
CommandTimeout | 30 |
CommandType | CommandType.Text |
ActiveConnection | null |
RowFetchCount | 1 |
NamedParameters | false |
CommandBehavior | 0 |
You can change the value for any of these properties through a separate call to the property.
The following example creates an ADOCommand and sets some of its properties.
ADOCommand Class | ADOCommand Members | System.Data.ADO Namespace | ADOCommand Constructor Overload List