File tree 2 files changed +6
-1
lines changed
doc/snippets/Microsoft.Data.SqlClient
src/Microsoft.Data.SqlClient/ref
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> an
111
111
</remarks >
112
112
</ExecuteReader >
113
113
<ExecuteReaderAsync >
114
+ <param name =" cancellationToken" >A token to cancel the asynchronous operation.</param >
114
115
<summary >
115
116
An asynchronous version of
116
117
<see cref =" M:Microsoft.Data.SqlClient.SqlBatch.ExecuteReader" />
@@ -122,6 +123,10 @@ The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> an
122
123
<see cref =" T:Microsoft.Data.SqlClient.SqlDataReader" />.
123
124
Exceptions will be reported via the returned Task object.
124
125
</summary >
126
+ <returns >A task representing the asynchronous operation.</returns >
127
+ <exception cref =" T:Microsoft.Data.SqlClient.SqlException" >An error occurred while executing the batch.</exception >
128
+ <exception cref =" T:System.ArgumentException" >The <see cref =" T:System.Data.CommandBehavior" /> value is invalid.</exception >
129
+ <exception cref =" T:System.OperationCanceledException" >The cancellation token was canceled. This exception is stored into the returned task.</exception >
125
130
</ExecuteReaderAsync >
126
131
<DbBatchCommands >
127
132
<summary >Gets the collection of <see cref =" T:Microsoft.Data.SqlClient.SqlBatchCommand" /> objects.</summary >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public class SqlBatch : System.Data.Common.DbBatch
44
44
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml' path='docs/members[@name="SqlBatch"]/ExecuteReader/*'/>
45
45
public Microsoft . Data . SqlClient . SqlDataReader ExecuteReader ( ) => throw null ;
46
46
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml' path='docs/members[@name="SqlBatch"]/ExecuteReaderAsync/*'/>
47
- public System . Threading . Tasks . Task < Microsoft . Data . SqlClient . SqlDataReader > ExecuteReaderAsync ( ) => throw null ;
47
+ public new System . Threading . Tasks . Task < Microsoft . Data . SqlClient . SqlDataReader > ExecuteReaderAsync ( System . Threading . CancellationToken cancellationToken = default ) => throw null ;
48
48
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml' path='docs/members[@name="SqlBatch"]/ExecuteScalar/*'/>
49
49
public override object ExecuteScalar ( ) => throw null ;
50
50
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml' path='docs/members[@name="SqlBatch"]/ExecuteScalarAsync/*'/>
You can’t perform that action at this time.
0 commit comments