diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml index d4db7051e6..0f1b3711e8 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlBatch.xml @@ -144,16 +144,6 @@ The following example creates a an Gets or sets the wait time (in seconds) before terminating the attempt to execute the batch and generating an error. The time in seconds to wait for the batch to execute. - - is generated if the assigned property value is less than 0. - -Note to implementers: it's recommended that 0 mean no timeout. - -]]> - A token to cancel the asynchronous operation. @@ -166,7 +156,7 @@ Do not invoke other methods and properties of the o To be added. - An asynchronous version of , which executes the batch against its connection, returning a which can be used to access the results. + An asynchronous version, which executes the batch against its connection, returning a which can be used to access the results. A task representing the asynchronous operation. @@ -183,10 +173,11 @@ Do not invoke other methods and properties of the o One of the enumeration values that specifies options for batch execution and data retrieval. A token to cancel the asynchronous operation. - Providers should implement this method to provide a non-default implementation for overloads. + Providers should implement this method to provide a non-default implementation. - The default implementation invokes the synchronous - method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteReader will be communicated via the returned Task Exception property. + The default implementation invokes the synchronous method and returns a completed task, blocking the calling thread. + The default implementation will return a cancelled task if passed an already cancelled cancellation token. + Exceptions thrown by ExecuteReader will be communicated via the returned Task Exception property. This method accepts a cancellation token that can be used to request the operation to be cancelled early. Implementations may ignore this request. A task representing the asynchronous operation.