Access returned tabular data after starting execution of command runs asynchronously - ADO.NET
Q. What should you do to access the returned tabular data after starting execution of a command that runs asynchronously? (Choose all that apply.)
1. Call the EndExecuteNonQuerymethod.
2. Call the EndExecuteReadermethod.
3. Wait for the StatementCompletedevent to fire and iterate through the DataReader.
4. Wait for the StatementCompletedevent to fire, call the EndExecuteReadermethod, and then iterate through the DataReader.
- Published on 19 Oct 15a. 1, 2
b. 1, 2, 3
c. 2, 3
d. 2, 4
ANSWER: 2, 4