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.Execute (ADODataReader)

Executes the CommandText against the ActiveConnection and builds an ADODataReader.

[Visual Basic]
Overloads Overridable Public Sub Execute( _
   ByRef dataReader As ADODataReader _
)
[C#]
public virtual void Execute(
   ref ADODataReader dataReader
);
[C++]
public: virtual void Execute(
   ADODataReader** dataReader
);
[JScript]
public function Execute(
   dataReader : ADODataReader
);

Parameters

dataReader
This will contain a valid ADODataReader on return from this method. If a valid ADODataReader cannot be granted, this will be set to null.

Remarks

The caller must call Open method of the ActiveConnection property.

Example

The following example creates an ADOCommand, clones it, executes it, then cancels the execution.

See Also

ADOCommand Class | ADOCommand Members | System.Data.ADO Namespace | ADOCommand.Execute Overload List