NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ADOCommand Constructor

Initializes a new instance of the ADOCommand class.

Overload List

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();

Initializes a new instance of the ADOCommand class with the query command text.

[Visual Basic] Overloads Public Sub New(String)
[C#] public ADOCommand(String);
[C++] public: ADOCommand(String*);
[JScript] public function ADOCommand(String);

Initializes a new instance of the ADOCommand class with the query command text and a connection string.

[Visual Basic] Overloads Public Sub New(String, String)
[C#] public ADOCommand(String, String);
[C++] public: ADOCommand(String*, String*);
[JScript] public function ADOCommand(String, String);

Initializes a new instance of the ADOCommand class with the query command text and an ADOConnection.

[Visual Basic] Overloads Public Sub New(String, ADOConnection)
[C#] public ADOCommand(String, ADOConnection);
[C++] public: ADOCommand(String*, ADOConnection);
[JScript] public function ADOCommand(String, ADOConnection);

Initializes a new instance of the ADOCommand class with an ADOConnection, the query command text, a specific CommandType, a parameter array, and a UpdateRowSource value.

[Visual Basic] Overloads Public Sub New(ADOConnection, String, CommandType, Boolean, ADOParameter(), UpdateRowSource)
[C#] public ADOCommand(ADOConnection, String, CommandType, bool, ADOParameter[], UpdateRowSource);
[C++] public: ADOCommand(ADOConnection*, String, CommandType, bool, ADOParameter[], UpdateRowSource);
[JScript] public function ADOCommand(ADOConnection, String, CommandType, Boolean, ADOParameter[], UpdateRowSource);

Example

The following example creates an ADOCommand and sets some of its properties.

See Also

ADOCommand Class | ADOCommand Members | System.Data.ADO Namespace