diff --git a/xml/Microsoft.Extensions.Caching.Distributed/DistributedCacheExtensions.xml b/xml/Microsoft.Extensions.Caching.Distributed/DistributedCacheExtensions.xml
index 5fdc69c0277..8a4719cc0ac 100644
--- a/xml/Microsoft.Extensions.Caching.Distributed/DistributedCacheExtensions.xml
+++ b/xml/Microsoft.Extensions.Caching.Distributed/DistributedCacheExtensions.xml
@@ -89,7 +89,7 @@
The key to get the stored data for.
Asynchronously gets a string from the specified cache with the specified key.
A task that gets the string value from the stored cache key.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -131,7 +131,7 @@
Optional. A to cancel the operation.
Asynchronously gets a string from the specified cache with the specified key.
A task that gets the string value from the stored cache key.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -200,7 +200,7 @@
The data to store in the cache.
Asynchronously sets a sequence of bytes in the specified cache with the specified key.
A task that represents the asynchronous set operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is null.
@@ -239,7 +239,7 @@
Optional. A to cancel the operation.
Asynchronously sets a sequence of bytes in the specified cache with the specified key.
A task that represents the asynchronous set operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is null.
@@ -351,7 +351,7 @@
The data to store in the cache.
Asynchronously sets a string in the specified cache with the specified key.
A task that represents the asynchronous set operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is null.
@@ -385,7 +385,7 @@
The cache options for the entry.
Asynchronously sets a string in the specified cache with the specified key.
A task that represents the asynchronous set operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is null.
@@ -424,7 +424,7 @@
Optional. A to cancel the operation.
Asynchronously sets a string in the specified cache with the specified key.
A task that represents the asynchronous set operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is null.
@@ -465,7 +465,7 @@
Optional. A to cancel the operation.
Asynchronously sets a string in the specified cache with the specified key.
A task that represents the asynchronous set operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is null.
diff --git a/xml/Microsoft.Extensions.Caching.Distributed/IDistributedCache.xml b/xml/Microsoft.Extensions.Caching.Distributed/IDistributedCache.xml
index 5eff7dea422..2eda84248d1 100644
--- a/xml/Microsoft.Extensions.Caching.Distributed/IDistributedCache.xml
+++ b/xml/Microsoft.Extensions.Caching.Distributed/IDistributedCache.xml
@@ -82,7 +82,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -116,7 +116,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Gets a value with the given key.
The that represents the asynchronous operation, containing the located value or null.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -175,7 +175,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -208,7 +208,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -267,7 +267,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -300,7 +300,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Removes the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -367,7 +367,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -404,7 +404,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Sets the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Microsoft.Extensions.Caching.Distributed/MemoryDistributedCache.xml b/xml/Microsoft.Extensions.Caching.Distributed/MemoryDistributedCache.xml
index 8dc7748e521..222609a8eba 100644
--- a/xml/Microsoft.Extensions.Caching.Distributed/MemoryDistributedCache.xml
+++ b/xml/Microsoft.Extensions.Caching.Distributed/MemoryDistributedCache.xml
@@ -172,7 +172,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -209,7 +209,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Gets a value with the given key.
The that represents the asynchronous operation, containing the located value or .
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -274,7 +274,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -310,7 +310,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -375,7 +375,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -411,7 +411,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Removes the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -484,7 +484,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -524,7 +524,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Sets the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Microsoft.Extensions.Caching.Redis/RedisCache.xml b/xml/Microsoft.Extensions.Caching.Redis/RedisCache.xml
index bfb9c7b8ff2..f03fc5b692e 100644
--- a/xml/Microsoft.Extensions.Caching.Redis/RedisCache.xml
+++ b/xml/Microsoft.Extensions.Caching.Redis/RedisCache.xml
@@ -140,7 +140,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -171,7 +171,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Gets a value with the given key.
The that represents the asynchronous operation, containing the located value or .
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -231,7 +231,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -262,7 +262,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -322,7 +322,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -353,7 +353,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Removes the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -421,7 +421,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -456,7 +456,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Sets the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Microsoft.Extensions.Caching.SqlServer/SqlServerCache.xml b/xml/Microsoft.Extensions.Caching.SqlServer/SqlServerCache.xml
index f473379ab84..d54b0b0a2f3 100644
--- a/xml/Microsoft.Extensions.Caching.SqlServer/SqlServerCache.xml
+++ b/xml/Microsoft.Extensions.Caching.SqlServer/SqlServerCache.xml
@@ -115,7 +115,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -148,7 +148,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Gets a value with the given key.
The that represents the asynchronous operation, containing the located value or .
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -210,7 +210,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -243,7 +243,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -305,7 +305,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -338,7 +338,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Removes the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -408,7 +408,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -445,7 +445,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Sets the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Microsoft.Extensions.Caching.StackExchangeRedis/RedisCache.xml b/xml/Microsoft.Extensions.Caching.StackExchangeRedis/RedisCache.xml
index ef56bb1a34a..558e1a5ecb6 100644
--- a/xml/Microsoft.Extensions.Caching.StackExchangeRedis/RedisCache.xml
+++ b/xml/Microsoft.Extensions.Caching.StackExchangeRedis/RedisCache.xml
@@ -134,7 +134,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Gets a value with the given key.
The that represents the asynchronous operation, containing the located value or .
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -194,7 +194,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -254,7 +254,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Removes the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -322,7 +322,7 @@
Optional. The used to propagate notifications that the operation should be canceled.
Sets the value with the given key.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Microsoft.Extensions.DependencyInjection/AsyncServiceScope.xml b/xml/Microsoft.Extensions.DependencyInjection/AsyncServiceScope.xml
index f241e2bda47..7d1a3789eac 100644
--- a/xml/Microsoft.Extensions.DependencyInjection/AsyncServiceScope.xml
+++ b/xml/Microsoft.Extensions.DependencyInjection/AsyncServiceScope.xml
@@ -107,7 +107,7 @@
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
A task that represents the asynchronous dispose operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Microsoft.Extensions.DependencyInjection/ServiceProvider.xml b/xml/Microsoft.Extensions.DependencyInjection/ServiceProvider.xml
index 912240feb8c..7b680830af8 100644
--- a/xml/Microsoft.Extensions.DependencyInjection/ServiceProvider.xml
+++ b/xml/Microsoft.Extensions.DependencyInjection/ServiceProvider.xml
@@ -99,7 +99,7 @@
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
A task that represents the asynchronous dispose operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostBuilderExtensions.xml b/xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostBuilderExtensions.xml
index 2b95fe71545..c9df69bb2e5 100644
--- a/xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostBuilderExtensions.xml
+++ b/xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostBuilderExtensions.xml
@@ -88,7 +88,7 @@
A that can be used to cancel the start.
Builds and starts the host.
The started .
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostExtensions.xml b/xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostExtensions.xml
index 86f82285789..de1934c51ca 100644
--- a/xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostExtensions.xml
+++ b/xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostExtensions.xml
@@ -89,7 +89,7 @@
The token to trigger shutdown.
Runs an application and returns a Task that only completes when the token is triggered or shutdown is triggered and all instances are stopped.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -221,7 +221,7 @@
The token to trigger shutdown.
Returns a Task that completes when shutdown is triggered via the given token.
The that represents the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/Mono.Security.Interface/IMonoSslStream.xml b/xml/Mono.Security.Interface/IMonoSslStream.xml
index 56a98c8d9e5..c44197e06fc 100644
--- a/xml/Mono.Security.Interface/IMonoSslStream.xml
+++ b/xml/Mono.Security.Interface/IMonoSslStream.xml
@@ -95,7 +95,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -126,7 +126,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -205,7 +205,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -236,7 +236,7 @@
To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.Activities/WorkflowInvoker.xml b/xml/System.Activities/WorkflowInvoker.xml
index b2aa795ed7c..a3c6973ac5e 100644
--- a/xml/System.Activities/WorkflowInvoker.xml
+++ b/xml/System.Activities/WorkflowInvoker.xml
@@ -1054,18 +1054,18 @@ The following example invokes a workflow consisting of a single `Add` activity t
## Remarks
To be notified when the workflow is complete, handle . To configure a time-out interval in which the workflow must complete, use one of the overloads that take a .
- This method invokes a workflow asynchronously using the event-based asynchronous design pattern. For more information, see [Event-based Asynchronous Pattern Overview](https://go.microsoft.com/fwlink/?LinkId=141765).
+ This method invokes a workflow asynchronously using the event-based asynchronous design pattern. For more information, see [Event-based Asynchronous Pattern Overview](/dotnet/standard/asynchronous-programming-patterns/event-based-asynchronous-pattern-overview).
-
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example invokes a workflow consisting of a `LongRunningDiceRoll` activity. The `LongRunningDiceRoll` activity has two output arguments that represent the results of the dice roll operation. When the workflow completes these are retrieved in the handler.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/cfx_workflowinvokerexample/cs/program.cs" id="Snippet131":::
- :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/cfx_workflowinvokerexample/cs/program.cs" id="Snippet33":::
-
- ]]>
+ :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/cfx_workflowinvokerexample/cs/program.cs" id="Snippet33":::
+
+]]>
@@ -1113,7 +1113,9 @@ The following example invokes a workflow consisting of a single `Add` activity t
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/cfx_workflowinvokerexample/cs/program.cs" id="Snippet33":::
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1197,18 +1199,18 @@ The following example invokes a workflow consisting of a single `Add` activity t
> [!NOTE]
> The is only thrown if the time-out interval elapses and the workflow becomes idle during execution. A workflow that takes longer than the specified time-out interval to complete completes successfully if the workflow does not become idle.
- This method invokes a workflow asynchronously using the event-based asynchronous design pattern. For more information, see [Event-based Asynchronous Pattern Overview](https://go.microsoft.com/fwlink/?LinkId=141765).
+ This method invokes a workflow asynchronously using the event-based asynchronous design pattern. For more information, see [Event-based Asynchronous Pattern Overview](/dotnet/standard/asynchronous-programming-patterns/event-based-asynchronous-pattern-overview).
-
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example invokes a workflow consisting of a `LongRunningDiceRoll` activity. The `LongRunningDiceRoll` activity has two output arguments that represent the results of the dice roll operation. When the workflow completes these are retrieved in the handler.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/cfx_workflowinvokerexample/cs/program.cs" id="Snippet131":::
- :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/cfx_workflowinvokerexample/cs/program.cs" id="Snippet33":::
-
- ]]>
+ :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/cfx_workflowinvokerexample/cs/program.cs" id="Snippet33":::
+
+]]>
@@ -1307,7 +1309,9 @@ The following example invokes a workflow consisting of a single `Add` activity t
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/cfx_workflowinvokerexample/cs/program.cs" id="Snippet33":::
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.CodeDom.Compiler/IndentedTextWriter.xml b/xml/System.CodeDom.Compiler/IndentedTextWriter.xml
index 34773fec4c9..c24475c5a87 100644
--- a/xml/System.CodeDom.Compiler/IndentedTextWriter.xml
+++ b/xml/System.CodeDom.Compiler/IndentedTextWriter.xml
@@ -446,7 +446,7 @@
Clears all buffers for this asynchronously and causes any buffered data to be written to the underlying device.
A representing the asynchronous flush operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -678,7 +678,7 @@
Asynchronously outputs tabs to the underlying based on the current .
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1380,7 +1380,7 @@
The to write.
Asynchronously writes the specified to the underlying , inserting tabs at the start of every line.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1415,7 +1415,7 @@
The string to write.
Asynchronously writes the specified string to the underlying , inserting tabs at the start of every line.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1526,7 +1526,7 @@
The number of characters to write.
Asynchronously writes the specified number of s from the specified buffer to the underlying , starting at the specified index, and outputting tabs at the start of every new line.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -2322,7 +2322,7 @@
Asynchronously writes the line terminator to the underlying .
A representing the asynchronous line writing operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -2358,7 +2358,7 @@
The character to write.
Asynchronously writes the specified to the underlying followed by a line terminator, inserting tabs at the start of every line.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -2393,7 +2393,7 @@
The string to write.
Asynchronously writes the specified string followed by a line terminator to the underlying , inserting tabs at the start of every line.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -2504,7 +2504,7 @@
The number of characters to write.
Asynchronously writes the specified number of characters from the specified buffer followed by a line terminator, to the underlying , starting at the specified index within the buffer, inserting tabs at the start of every line.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -2598,7 +2598,7 @@
The string to write.
Asynchronously writes the specified string to the underlying without inserting tabs.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.CommandLine.Parsing/ParseResultExtensions.xml b/xml/System.CommandLine.Parsing/ParseResultExtensions.xml
index 3bf3e462881..aeafc50b0e9 100644
--- a/xml/System.CommandLine.Parsing/ParseResultExtensions.xml
+++ b/xml/System.CommandLine.Parsing/ParseResultExtensions.xml
@@ -130,7 +130,7 @@
Invokes the appropriate command handler for a parsed command line input.
A task whose result can be used as a process exit code.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.CommandLine.Parsing/ParserExtensions.xml b/xml/System.CommandLine.Parsing/ParserExtensions.xml
index 408866c99b9..4e9be7f44c5 100644
--- a/xml/System.CommandLine.Parsing/ParserExtensions.xml
+++ b/xml/System.CommandLine.Parsing/ParserExtensions.xml
@@ -107,7 +107,7 @@
Parses a command line string value and invokes the handler for the indicated command.
The exit code for the invocation.
- The command line string input will be split into tokens as if it had been passed on the command line.
+ The command line string input will be split into tokens as if it had been passed on the command line.This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -137,7 +137,7 @@
Parses a command line string array and invokes the handler for the indicated command.
The exit code for the invocation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.CommandLine/CommandExtensions.xml b/xml/System.CommandLine/CommandExtensions.xml
index b9593400277..33bab0fa599 100644
--- a/xml/System.CommandLine/CommandExtensions.xml
+++ b/xml/System.CommandLine/CommandExtensions.xml
@@ -107,7 +107,7 @@
Parses and invokes a command.
The exit code for the invocation.
- The command line string input will be split into tokens as if it had been passed on the command line.
+ The command line string input will be split into tokens as if it had been passed on the command line.This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -137,7 +137,7 @@
Parses and invokes a command.
The exit code for the invocation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.Data.Common/DbBatch.xml b/xml/System.Data.Common/DbBatch.xml
index 54b91face44..4fd6e4edcbd 100644
--- a/xml/System.Data.Common/DbBatch.xml
+++ b/xml/System.Data.Common/DbBatch.xml
@@ -292,7 +292,10 @@ The precise semantics of batch execution vary across ADO.NET providers, especial
The default implementation of this asynchronous method delegates to its synchronous counterpart and returns a completed `ValueTask`, potentially blocking the calling thread.
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -366,7 +369,9 @@ The precise semantics of batch execution vary across ADO.NET providers, especial
## Remarks
For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -436,7 +441,9 @@ The precise semantics of batch execution vary across ADO.NET providers, especial
## Remarks
For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the batch.
ADO.NET Overview
@@ -538,7 +545,9 @@ The precise semantics of batch execution vary across ADO.NET providers, especial
## Remarks
Managed provider implementers must call in . For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the batch.
The value is invalid.
@@ -590,7 +599,7 @@ The precise semantics of batch execution vary across ADO.NET providers, especial
A token to cancel the asynchronous operation.
An asynchronous version of , which executes the batch and returns the first column of the first row in the first returned result set. All other columns, rows and result sets are ignored.
The first column of the first row in the first result set.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
An error occurred while executing the batch.
@@ -638,7 +647,7 @@ The precise semantics of batch execution vary across ADO.NET providers, especial
An optional token to cancel the asynchronous operation. The default value is .
Asynchronously creates a prepared (or compiled) version of the batch, or of each of its commands, on the data source.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.Data.Common/DbCommand.xml b/xml/System.Data.Common/DbCommand.xml
index 00907fa09d9..85f8b32ab8a 100644
--- a/xml/System.Data.Common/DbCommand.xml
+++ b/xml/System.Data.Common/DbCommand.xml
@@ -747,7 +747,10 @@
The default implementation of this asynchronous method delegates to its synchronous counterpart and returns a completed `ValueTask`, potentially blocking the calling thread.
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -848,7 +851,9 @@
## Remarks
For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
An invalid value.
@@ -973,7 +978,9 @@
## Remarks
For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
ADO.NET Overview
@@ -1028,7 +1035,9 @@
## Remarks
For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
ADO.NET Overview
@@ -1192,7 +1201,9 @@
## Remarks
Managed provider implementers must call in . For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
An invalid value.
@@ -1246,7 +1257,9 @@
## Remarks
Managed provider implementers must call in . For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
An invalid value.
@@ -1300,7 +1313,9 @@
## Remarks
Managed provider implementers must call in . For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
An invalid value.
@@ -1354,7 +1369,9 @@
## Remarks
Managed provider implementers must call in . For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
An invalid value.
@@ -1478,7 +1495,9 @@
## Remarks
For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
ADO.NET Overview
@@ -1534,7 +1553,9 @@
## Remarks
For more information about asynchronous programming, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command.
ADO.NET Overview
@@ -1682,7 +1703,9 @@
If the property is set to `TableDirect`, `PrepareAsync` does nothing. If is set to `StoredProcedure`, the call to `PrepareAsync` should succeed, although it may result in a no-op.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.Data.Common/DbConnection.xml b/xml/System.Data.Common/DbConnection.xml
index 60f2d2bd699..d355d0000e4 100644
--- a/xml/System.Data.Common/DbConnection.xml
+++ b/xml/System.Data.Common/DbConnection.xml
@@ -209,7 +209,9 @@
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -368,7 +370,9 @@
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -414,7 +418,9 @@
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -550,7 +556,9 @@ This property returns `false` by default; providers that implement
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -660,7 +668,9 @@ This property returns `false` by default; providers that implement [!CAUTION]
> Do not close or dispose a `DbConnection`, a `DbDataReader`, or any other managed object in the `Finalize` method of your class. In a finalizer, you should only release unmanaged resources that your class owns directly. If your class does not own any unmanaged resources, do not include a `Finalize` method in your class definition. For more information, see [Garbage Collection](/dotnet/standard/garbage-collection/).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1154,7 +1164,9 @@ This property returns `false` by default; providers that implement
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1417,7 +1429,7 @@ This property returns `false` by default; providers that implement .
Exceptions thrown by will be communicated via the returned Task Exception property.
A task representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1453,7 +1465,7 @@ This property returns `false` by default; providers that implement .
Exceptions thrown by will be communicated via the returned Task Exception property.
A task representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1491,7 +1503,7 @@ This property returns `false` by default; providers that implement .
Exceptions thrown by will be communicated via the returned Task Exception property.
A task representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1662,7 +1674,9 @@ This property returns `false` by default; providers that implement
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
ADO.NET Overview
@@ -1720,7 +1734,9 @@ This property returns `false` by default; providers that implement
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
ADO.NET Overview
diff --git a/xml/System.Data.Common/DbDataReader.xml b/xml/System.Data.Common/DbDataReader.xml
index 8b40c8fdac3..59de4c9530b 100644
--- a/xml/System.Data.Common/DbDataReader.xml
+++ b/xml/System.Data.Common/DbDataReader.xml
@@ -203,7 +203,9 @@
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -428,7 +430,9 @@
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -2046,7 +2050,7 @@ Returns if the executed command returned no resultset, o
The default implementation will return a cancelled task if passed an already cancelled .
Exceptions thrown by will be communicated via the returned Task Exception property.
A task representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -2534,7 +2538,9 @@ Returns if the executed command returned no resultset, o
Other methods and properties of the DbDataReader object should not be invoked while the returned Task is not yet completed.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The connection was dropped or closed during the data retrieval.
@@ -2611,7 +2617,9 @@ Returns if the executed command returned no resultset, o
This method accepts a cancellation token that can be used to request the operation to be cancelled early. Implementations may ignore this request.
Other methods and properties of the DbDataReader object should not be invoked while the returned Task is not yet completed.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The connection was dropped or closed during the data retrieval.
@@ -2854,7 +2862,9 @@ Returns if the executed command returned no resultset, o
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
Other methods and properties of the DbDataReader object should not be invoked while the returned Task is not yet completed.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command text.
ADO.NET Overview
@@ -2909,7 +2919,9 @@ Returns if the executed command returned no resultset, o
This method accepts a cancellation token that can be used to request the operation to be cancelled early. Implementations may ignore this request.
Other methods and properties of the DbDataReader object should not be invoked while the returned Task is not yet completed.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command text.
ADO.NET Overview
@@ -3030,7 +3042,9 @@ Returns if the executed command returned no resultset, o
Other methods and properties of the DbDataReader object should not be invoked while the returned Task is not yet completed.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command text.
ADO.NET Overview
@@ -3086,7 +3100,9 @@ Returns if the executed command returned no resultset, o
Other methods and properties of the DbDataReader object should not be invoked while the returned Task is not yet completed.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
An error occurred while executing the command text.
ADO.NET Overview
diff --git a/xml/System.Data.Common/DbDataSource.xml b/xml/System.Data.Common/DbDataSource.xml
index bb3ae447ebc..4eddb94799c 100644
--- a/xml/System.Data.Common/DbDataSource.xml
+++ b/xml/System.Data.Common/DbDataSource.xml
@@ -338,7 +338,9 @@
## Remarks
If the current instance of represents a connection pool, disposing it should close all idle connections, and arrange for busy connections to be closed as soon as possible.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -431,7 +433,9 @@
It is the responsibility of the caller to properly dispose the connection returned by this method. Failure to do so may result in a connection leak.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -491,7 +495,9 @@
## Remarks
This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.Data.Common/DbTransaction.xml b/xml/System.Data.Common/DbTransaction.xml
index d4cbbbf861c..29897ef8c22 100644
--- a/xml/System.Data.Common/DbTransaction.xml
+++ b/xml/System.Data.Common/DbTransaction.xml
@@ -195,7 +195,9 @@
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -459,7 +461,9 @@
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -564,7 +568,7 @@
An optional token to cancel the asynchronous operation. The default value is .
Destroys a savepoint previously defined in the current transaction. This allows the system to reclaim some resources before the transaction ends.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -680,7 +684,9 @@
Data providers that support [asynchronous programming](/dotnet/framework/data/adonet/asynchronous-programming) should override the default implementation using asynchronous I/O operations.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -712,7 +718,7 @@
An optional token to cancel the asynchronous operation. The default value is .
Rolls back all commands that were executed after the specified savepoint was established.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -772,7 +778,7 @@
An optional token to cancel the asynchronous operation. The default value is .
Creates a savepoint in the transaction. This allows all commands that are executed after the savepoint was established to be rolled back, restoring the transaction state to what it was at the time of the savepoint.
A representing the asynchronous operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.Data.SqlClient/SqlBulkCopy.xml b/xml/System.Data.SqlClient/SqlBulkCopy.xml
index e2e5fdfa28d..6d86488ad43 100644
--- a/xml/System.Data.SqlClient/SqlBulkCopy.xml
+++ b/xml/System.Data.SqlClient/SqlBulkCopy.xml
@@ -1201,7 +1201,9 @@
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1242,7 +1244,9 @@ For more information about asynchronous programming in the .NET Framework Data P
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling multiple times for the same instance before task completion.
@@ -1297,7 +1301,9 @@ For more information about asynchronous programming in the .NET Framework Data P
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling multiple times for the same instance before task completion.
@@ -1352,7 +1358,9 @@ For more information about asynchronous programming in the .NET Framework Data P
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling multiple times for the same instance before task completion.
@@ -1413,7 +1421,7 @@ For more information about asynchronous programming in the .NET Framework Data P
The cancellation instruction. A value in this parameter makes this method equivalent to .
The asynchronous version of , which copies all rows from the supplied array to a destination table specified by the property of the object.
Returns .
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1457,7 +1465,9 @@ For more information about asynchronous programming in the .NET Framework Data P
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling multiple times for the same instance before task completion.
@@ -1514,7 +1524,9 @@ For more information about asynchronous programming in the .NET Framework Data P
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling multiple times for the same instance before task completion.
@@ -1573,7 +1585,9 @@ For more information about asynchronous programming in the .NET Framework Data P
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling multiple times for the same instance before task completion.
@@ -1632,7 +1646,9 @@ For more information about asynchronous programming in the .NET Framework Data P
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling multiple times for the same instance before task completion.
@@ -1697,7 +1713,9 @@ For more information about asynchronous programming in the .NET Framework Data P
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling multiple times for the same instance before task completion.
diff --git a/xml/System.Data.SqlClient/SqlCommand.xml b/xml/System.Data.SqlClient/SqlCommand.xml
index 9592c9e4724..1e7d94953e8 100644
--- a/xml/System.Data.SqlClient/SqlCommand.xml
+++ b/xml/System.Data.SqlClient/SqlCommand.xml
@@ -2557,7 +2557,7 @@ In some situations, can be set to To be added.
To be added.
To be added.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -2694,7 +2694,9 @@ If no statements are detected that contribute to the count, the return value is
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
A other than **Binary** or **VarBinary** was used when was set to . For more information about streaming, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
@@ -2959,7 +2961,9 @@ The closed or dropped durin
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
A other than **Binary** or **VarBinary** was used when was set to . For more information about streaming, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
@@ -3033,7 +3037,9 @@ The closed or dropped durin
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
A other than **Binary** or **VarBinary** was used when was set to . For more information about streaming, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
@@ -3109,7 +3115,9 @@ The closed or dropped durin
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
A other than **Binary** or **VarBinary** was used when was set to . For more information about streaming, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
@@ -3187,7 +3195,9 @@ A timeout occurred during a streaming operation. For more information about stre
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
A other than **Binary** or **VarBinary** was used when was set to . For more information about streaming, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
@@ -3349,7 +3359,9 @@ A timeout occurred during a streaming operation. For more information about stre
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
A other than **Binary** or **VarBinary** was used when was set to . For more information about streaming, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
@@ -3521,7 +3533,9 @@ The **XmlReader** returned by this method does not support asynchronous operatio
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
A other than **Binary** or **VarBinary** was used when was set to . For more information about streaming, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
@@ -3599,7 +3613,9 @@ The **XmlReader** returned by this method does not support asynchronous operatio
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
A other than **Binary** or **VarBinary** was used when was set to . For more information about streaming, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
diff --git a/xml/System.Data.SqlClient/SqlConnection.xml b/xml/System.Data.SqlClient/SqlConnection.xml
index d6865c44734..c7483c0c054 100644
--- a/xml/System.Data.SqlClient/SqlConnection.xml
+++ b/xml/System.Data.SqlClient/SqlConnection.xml
@@ -2622,7 +2622,9 @@ class Program {
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling more than once for the same instance before task completion.
diff --git a/xml/System.Data.SqlClient/SqlDataReader.xml b/xml/System.Data.SqlClient/SqlDataReader.xml
index 07e69f4ac45..aeee87a5d53 100644
--- a/xml/System.Data.SqlClient/SqlDataReader.xml
+++ b/xml/System.Data.SqlClient/SqlDataReader.xml
@@ -3724,7 +3724,9 @@ This member is an explicit interface member implementation. It can be used only
## Remarks
For more information, see [SqlClient Streaming Support](/dotnet/framework/data/adonet/sqlclient-streaming-support).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The connection drops or is closed during the data retrieval.
@@ -3967,7 +3969,9 @@ This member is an explicit interface member implementation. It can be used only
## Remarks
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling more than once for the same instance before task completion.
@@ -4092,7 +4096,9 @@ This member is an explicit interface member implementation. It can be used only
For more information, including code samples, about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](/dotnet/framework/data/adonet/asynchronous-programming).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
Calling more than once for the same instance before task completion.
diff --git a/xml/System.Data/DataReaderExtensions.xml b/xml/System.Data/DataReaderExtensions.xml
index 786b472f6b2..fad40ee9d54 100644
--- a/xml/System.Data/DataReaderExtensions.xml
+++ b/xml/System.Data/DataReaderExtensions.xml
@@ -1152,7 +1152,7 @@
A whose property is if the specified column value is equivalent to or if it is not.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The connection was dropped or closed during the data retrieval.
diff --git a/xml/System.Device.Location/CivicAddressResolver.xml b/xml/System.Device.Location/CivicAddressResolver.xml
index df83d7c1840..cdc7fabbe1e 100644
--- a/xml/System.Device.Location/CivicAddressResolver.xml
+++ b/xml/System.Device.Location/CivicAddressResolver.xml
@@ -143,15 +143,19 @@ CivicAddressResolver resolver = new CivicAddressResolver();
The containing the location to resolve to a civic address.
Resolves an address asynchronously from a location that is based on latitude and longitude. The call does not block execution of the calling thread while the address is being resolved.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following program shows how to call to resolve a civic address asynchronously.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/CivicAddress/Overview/resolvecivicaddressasync.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.resolvecivicaddressasync/vb/resolvecivicaddressasync.vb" id="Snippet1":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.resolvecivicaddressasync/vb/resolvecivicaddressasync.vb" id="Snippet1":::
+
+]]>
is .
diff --git a/xml/System.Device.Location/ICivicAddressResolver.xml b/xml/System.Device.Location/ICivicAddressResolver.xml
index eb872e92586..0cdd620d629 100644
--- a/xml/System.Device.Location/ICivicAddressResolver.xml
+++ b/xml/System.Device.Location/ICivicAddressResolver.xml
@@ -88,7 +88,9 @@
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/CivicAddress/Overview/resolvecivicaddressasync.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.resolvecivicaddressasync/vb/resolvecivicaddressasync.vb" id="Snippet2":::
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml
index 104fc466c93..ec21fa9bc0e 100644
--- a/xml/System.Diagnostics/Process.xml
+++ b/xml/System.Diagnostics/Process.xml
@@ -6847,7 +6847,9 @@ The file specified in the could not be found.
Calling this method will set to `true`.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.Formats.Tar/TarEntry.xml b/xml/System.Formats.Tar/TarEntry.xml
index 718d29c8b92..c48a990e6bc 100644
--- a/xml/System.Formats.Tar/TarEntry.xml
+++ b/xml/System.Formats.Tar/TarEntry.xml
@@ -168,6 +168,7 @@ An I/O problem occurred.
Files of type , , or can only be extracted in Unix platforms.
Elevation is required to extract a or to disk.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
is .
diff --git a/xml/System.Formats.Tar/TarFile.xml b/xml/System.Formats.Tar/TarFile.xml
index db31cc85e74..25ab7b88f8c 100644
--- a/xml/System.Formats.Tar/TarFile.xml
+++ b/xml/System.Formats.Tar/TarFile.xml
@@ -120,7 +120,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously creates a tar stream that contains all the filesystem entries from the specified directory.
A task that represents the asynchronous creation operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is .
@@ -161,7 +161,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously creates a tar archive from the contents of the specified directory, and outputs them into the specified path. Can optionally include the base directory as the prefix for the entry names.
A task that represents the asynchronous creation operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is .
@@ -292,6 +292,7 @@ Extracting one of the tar entries would have resulted in a file outside the spec
Files of type , , or can only be extracted in Unix platforms.
Elevation is required to extract a or to disk.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is .
@@ -341,6 +342,7 @@ Extracting one of the tar entries would have resulted in a file outside the spec
Files of type , , or can only be extracted in Unix platforms.
Elevation is required to extract a or to disk.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
or is .
diff --git a/xml/System.Formats.Tar/TarReader.xml b/xml/System.Formats.Tar/TarReader.xml
index 281cea70e5e..924a3369056 100644
--- a/xml/System.Formats.Tar/TarReader.xml
+++ b/xml/System.Formats.Tar/TarReader.xml
@@ -98,7 +98,7 @@
Asynchronously disposes the current instance, and closes the streams of all the entries that were read from the archive if the leaveOpen argument was set to in the constructor.
A value task that represents the asynchronous dispose operation.
- The property of any entry can be replaced with a new stream. If the user decides to replace it on a instance that was obtained using a , the underlying stream gets disposed immediately, freeing the of origin from the responsibility of having to dispose it.
+ The property of any entry can be replaced with a new stream. If the user decides to replace it on a instance that was obtained using a , the underlying stream gets disposed immediately, freeing the of origin from the responsibility of having to dispose it.This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -175,7 +175,7 @@ Two or more extended attributes entries were found consecutively in the current
The token to monitor for cancellation requests. The default value is .
Asynchronously retrieves the next entry from the archive stream.
A value task containing a instance if a valid entry was found, or if the end of the archive has been reached.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
The archive is malformed.
diff --git a/xml/System.Formats.Tar/TarWriter.xml b/xml/System.Formats.Tar/TarWriter.xml
index f3772831483..5cda9867e26 100644
--- a/xml/System.Formats.Tar/TarWriter.xml
+++ b/xml/System.Formats.Tar/TarWriter.xml
@@ -154,7 +154,7 @@
Asynchronously disposes the current instance, and closes the archive stream if the leaveOpen argument was set to in the constructor.
A value task that represents the asynchronous dispose operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -313,7 +313,9 @@ These are the entry types supported for writing on each format:
-
-
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The entry type is or and the is or empty.
The archive stream is disposed.
@@ -347,7 +349,7 @@ These are the entry types supported for writing on each format:
The token to monitor for cancellation requests. The default value is .
Asynchronously writes the specified file into the archive stream as a tar entry.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
The archive stream is disposed.
or is or empty.
diff --git a/xml/System.IO.Compression/BrotliStream.xml b/xml/System.IO.Compression/BrotliStream.xml
index bb494427c23..8e24f99ddf2 100644
--- a/xml/System.IO.Compression/BrotliStream.xml
+++ b/xml/System.IO.Compression/BrotliStream.xml
@@ -576,7 +576,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously clears all buffers for this Brotli stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
A task that represents the asynchronous flush operation.
- If the operation is canceled before it completes, the returned task contains the value for the property.
+ If the operation is canceled before it completes, the returned task contains the value for the property.This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -799,6 +799,7 @@
The `ReadAsync` method enables you to perform resource-intensive I/O operations without blocking the main thread. This performance consideration is particularly important in a Windows 8.x Store app or desktop app where a time-consuming stream operation can block the UI thread and make your app appear as if it is not working. The async methods are used in conjunction with the and keywords in Visual Basic and C#.
Use the property to determine whether the current instance supports reading.
If the operation is canceled before it completes, the returned task contains the value for the property.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1051,6 +1052,7 @@
The `WriteAsync` method enables you to perform resource-intensive I/O operations without blocking the main thread. This performance consideration is particularly important in a Windows 8.x Store app or desktop app where a time-consuming stream operation can block the UI thread and make your app appear as if it is not working. The async methods are used in conjunction with the and keywords in Visual Basic and C#.
Use the property to determine whether the current instance supports writing.
If the operation is canceled before it completes, the returned task contains the value for the property.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO.Compression/DeflateStream.xml b/xml/System.IO.Compression/DeflateStream.xml
index a2b9cddf60f..00ee6dcccba 100644
--- a/xml/System.IO.Compression/DeflateStream.xml
+++ b/xml/System.IO.Compression/DeflateStream.xml
@@ -719,7 +719,9 @@ If the operation is canceled before it completes, the returned task contains the
Copying begins at the current position in the current Deflate stream.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1054,7 +1056,9 @@ The end write call is invalid.
If the operation is canceled before it completes, the returned task contains the value for the property.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1373,7 +1377,9 @@ Use the property to determ
If the operation is canceled before it completes, the returned task contains the value for the property.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1723,7 +1729,9 @@ Use the property to deter
If the operation is canceled before it completes, the returned task contains the value for the property.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.IO.Compression/GZipStream.xml b/xml/System.IO.Compression/GZipStream.xml
index f7c92f38aeb..db739b4bb3b 100644
--- a/xml/System.IO.Compression/GZipStream.xml
+++ b/xml/System.IO.Compression/GZipStream.xml
@@ -752,7 +752,9 @@ If the operation is canceled before it completes, the returned task contains the
Copying begins at the current position in the current GZip stream.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1072,7 +1074,9 @@ This method flushes only if the current compression mode is value for the property.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1396,7 +1400,9 @@ Use the property to determine
If the operation is canceled before it completes, the returned task contains the value for the property.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1752,7 +1758,9 @@ Use the property to determin
If the operation is canceled before it completes, the returned task contains the value for the property.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.IO.Compression/ZLibStream.xml b/xml/System.IO.Compression/ZLibStream.xml
index 021e8401589..d0a12a68cf4 100644
--- a/xml/System.IO.Compression/ZLibStream.xml
+++ b/xml/System.IO.Compression/ZLibStream.xml
@@ -364,7 +364,7 @@
The token to monitor for cancellation requests.
Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.
A task that represents the asynchronous copy operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
is .
@@ -518,7 +518,7 @@
The token to monitor for cancellation requests.
Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
A task that represents the asynchronous flush operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -677,7 +677,7 @@
The token to monitor for cancellation requests.
Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.
A task that represents the asynchronous completion of the operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -866,7 +866,7 @@
The token to monitor for cancellation requests.
Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.
A task that represents the asynchronous completion of the operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO.Hashing/NonCryptographicHashAlgorithm.xml b/xml/System.IO.Hashing/NonCryptographicHashAlgorithm.xml
index 8a8c0a69747..6d519e9bf73 100644
--- a/xml/System.IO.Hashing/NonCryptographicHashAlgorithm.xml
+++ b/xml/System.IO.Hashing/NonCryptographicHashAlgorithm.xml
@@ -147,7 +147,7 @@
The default value is .
Asychronously reads the contents of and appends them to the data already processed for the current hash computation.
A task that represents the asynchronous append operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
is .
diff --git a/xml/System.IO.IsolatedStorage/IsolatedStorageFileStream.xml b/xml/System.IO.IsolatedStorage/IsolatedStorageFileStream.xml
index bf5362e69f4..f9e2a06ac12 100644
--- a/xml/System.IO.IsolatedStorage/IsolatedStorageFileStream.xml
+++ b/xml/System.IO.IsolatedStorage/IsolatedStorageFileStream.xml
@@ -1330,7 +1330,7 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
The token to monitor for cancellation requests. The default value is .
Asynchronously clears buffers for this stream and causes any buffered data to be written to the file.
A task that represents the asynchronous flush operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1818,7 +1818,9 @@ The meth
The method will return zero only if the end of the stream is reached. In all other cases, always reads at least one byte from the stream before returning. If no data is available from the object upon a call to , the method will block until at least one byte of data can be returned.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -2265,7 +2267,9 @@ If the write operation is successful, the current position of the object is advanced by the number of bytes written. If an exception occurs, the current position of the object is unchanged.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.IO.Pipelines/PipeReader.xml b/xml/System.IO.Pipelines/PipeReader.xml
index d688eef35b5..609b0a48f12 100644
--- a/xml/System.IO.Pipelines/PipeReader.xml
+++ b/xml/System.IO.Pipelines/PipeReader.xml
@@ -278,7 +278,7 @@ The canceled An optional exception that indicates the failure that caused the reader to complete.
Marks the current pipe reader instance as being complete, meaning no more data will be read from it.
A value task that represents the asynchronous complete operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO.Pipelines/PipeWriter.xml b/xml/System.IO.Pipelines/PipeWriter.xml
index 9eb766317cb..92e2a979095 100644
--- a/xml/System.IO.Pipelines/PipeWriter.xml
+++ b/xml/System.IO.Pipelines/PipeWriter.xml
@@ -226,7 +226,7 @@ The canceled An optional exception that indicates the failure that caused the pipeline to complete.
Marks the current pipe writer instance as being complete, meaning no more data will be written to it.
A value task that represents the asynchronous complete operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO.Pipes/NamedPipeClientStream.xml b/xml/System.IO.Pipes/NamedPipeClientStream.xml
index 397190aa2f5..f8a68e8b97c 100644
--- a/xml/System.IO.Pipes/NamedPipeClientStream.xml
+++ b/xml/System.IO.Pipes/NamedPipeClientStream.xml
@@ -910,7 +910,7 @@
Asynchronously connects to a waiting server with an infinite timeout period.
A task that represents the asynchronous connect operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -951,7 +951,7 @@
The number of milliseconds to wait for the server to respond before the connection times out.
Asynchronously connects to a waiting server within the specified timeout period.
A task that represents the asynchronous connect operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -992,7 +992,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously connects to a waiting server and monitors cancellation requests.
A task that represents the asynchronous connect operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1035,7 +1035,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously connects to a waiting server within the specified timeout period and monitors cancellation requests.
A task that represents the asynchronous connect operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1065,7 +1065,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously connects to a waiting server within the specified timeout period and monitors cancellation requests.
A task that represents the asynchronous connect operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO.Pipes/NamedPipeServerStream.xml b/xml/System.IO.Pipes/NamedPipeServerStream.xml
index 95ac942101f..8f36106eeff 100644
--- a/xml/System.IO.Pipes/NamedPipeServerStream.xml
+++ b/xml/System.IO.Pipes/NamedPipeServerStream.xml
@@ -1499,7 +1499,9 @@
## Remarks
Because it is asynchronous, this method returns immediately, but the connection process is completed when the client calls or .
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1549,7 +1551,9 @@
Cancellation requests using the cancellation token will only work if the object was created with a pipe option value of or if the cancellation occurs before the method is called.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.IO.Pipes/PipeStream.xml b/xml/System.IO.Pipes/PipeStream.xml
index bc4c89f4a20..4fed3a1af6e 100644
--- a/xml/System.IO.Pipes/PipeStream.xml
+++ b/xml/System.IO.Pipes/PipeStream.xml
@@ -878,7 +878,7 @@ When the disposing parameter is `true`, this method releases all resources held
The token to monitor for cancellation requests.
Asynchronously clears the buffer for the current stream and causes any buffered data to be written to the underlying device.
A task that represent the asynchronous flush operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1659,7 +1659,9 @@ Use the property to determine wheth
If the operation is canceled before it completes, the returned task contains the value for the property.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The stream does not support reading.
Cannot access a closed pipe.
@@ -2344,7 +2346,9 @@ Use the property to determine whet
If the operation is canceled before it completes, the returned task contains the value for the property.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
diff --git a/xml/System.IO/BinaryWriter.xml b/xml/System.IO/BinaryWriter.xml
index ce8265afc00..30db3379827 100644
--- a/xml/System.IO/BinaryWriter.xml
+++ b/xml/System.IO/BinaryWriter.xml
@@ -651,7 +651,7 @@
Asynchronously releases all resources used by the current instance of the class.
A task that represents the asynchronous dispose operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO/BufferedStream.xml b/xml/System.IO/BufferedStream.xml
index 1ec7ef78231..3e88d17fc8c 100644
--- a/xml/System.IO/BufferedStream.xml
+++ b/xml/System.IO/BufferedStream.xml
@@ -808,7 +808,9 @@ If the operation is canceled before it completes, the returned task contains the
Copying begins at the current position in the current stream.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1151,7 +1153,7 @@ Calling `DisposeAsync` allows the resources used by the The token to monitor for cancellation requests.
Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
A task that represents the asynchronous flush operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
The stream has been disposed.
@@ -1528,7 +1530,9 @@ If the operation is canceled before it completes, the returned task contains the
## Remarks
You can create a cancellation token by creating an instance of the class and passing the property as the `cancellationToken` parameter.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -2018,7 +2022,9 @@ If the operation is canceled before it completes, the returned task contains the
## Remarks
You can create a cancellation token by creating an instance of the class and passing the property as the `cancellationToken` parameter.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
diff --git a/xml/System.IO/File.xml b/xml/System.IO/File.xml
index bc0d8a05718..ee2bce4f46b 100644
--- a/xml/System.IO/File.xml
+++ b/xml/System.IO/File.xml
@@ -348,7 +348,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously appends lines to a file, and then closes the file. If the specified file does not exist, this method creates a file, writes the specified lines to the file, and then closes the file.
A task that represents the asynchronous append operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -394,7 +394,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously appends lines to a file by using a specified encoding, and then closes the file. If the specified file does not exist, this method creates a file, writes the specified lines to the file, and then closes the file.
A task that represents the asynchronous append operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -643,7 +643,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously opens a file or creates a file if it does not already exist, appends the specified string to the file, and then closes the file.
A task that represents the asynchronous append operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -690,7 +690,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously opens a file or creates the file if it does not already exist, appends the specified string to the file using the specified encoding, and then closes the file.
A task that represents the asynchronous append operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -4051,7 +4051,7 @@ The following example moves a file.
The token to monitor for cancellation requests. The default value is .
Asynchronously opens a binary file, reads the contents of the file into a byte array, and then closes the file.
A task that represents the asynchronous read operation, which wraps the byte array containing the contents of the file.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -4303,7 +4303,7 @@ The following example moves a file.
The token to monitor for cancellation requests. The default value is .
Asynchronously opens a text file, reads all lines of the file, and then closes the file.
A task that represents the asynchronous read operation, which wraps the string array containing all lines of the file.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -4347,7 +4347,7 @@ The following example moves a file.
The token to monitor for cancellation requests. The default value is .
Asynchronously opens a text file, reads all lines of the file with the specified encoding, and then closes the file.
A task that represents the asynchronous read operation, which wraps the string array containing all lines of the file.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -4607,7 +4607,7 @@ The following example moves a file.
The token to monitor for cancellation requests. The default value is .
Asynchronously opens a text file, reads all the text in the file, and then closes the file.
A task that represents the asynchronous read operation, which wraps the string containing all text in the file.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -4651,7 +4651,7 @@ The following example moves a file.
The token to monitor for cancellation requests. The default value is .
Asynchronously opens a text file, reads all text in the file with the specified encoding, and then closes the file.
A task that represents the asynchronous read operation, which wraps the string containing all text in the file.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -4896,7 +4896,7 @@ The following example moves a file.
The token to monitor for cancellation requests. The default value is .
Asynchronously reads the lines of a file.
The async enumerable that represents all the lines of the file, or the lines that are the result of a query.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -4930,7 +4930,7 @@ The following example moves a file.
The token to monitor for cancellation requests. The default value is .
Asynchronously reads the lines of a file that has a specified encoding.
The async enumerable that represents all the lines of the file, or the lines that are the result of a query.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -6401,7 +6401,7 @@ It is not possible to change the compression status of a o
The token to monitor for cancellation requests. The default value is .
Asynchronously creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is overwritten.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -6848,7 +6848,7 @@ It is not possible to change the compression status of a o
The token to monitor for cancellation requests. The default value is .
Asynchronously creates a new file, writes the specified lines to the file, and then closes the file.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -6894,7 +6894,7 @@ It is not possible to change the compression status of a o
The token to monitor for cancellation requests. The default value is .
Asynchronously creates a new file, write the specified lines to the file by using the specified encoding, and then closes the file.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -7149,7 +7149,7 @@ It is not possible to change the compression status of a o
The token to monitor for cancellation requests. The default value is .
Asynchronously creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -7196,7 +7196,7 @@ It is not possible to change the compression status of a o
The token to monitor for cancellation requests. The default value is .
Asynchronously creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO/FileStream.xml b/xml/System.IO/FileStream.xml
index 6680db14eac..5f3eeab2728 100644
--- a/xml/System.IO/FileStream.xml
+++ b/xml/System.IO/FileStream.xml
@@ -2756,7 +2756,9 @@ Calling `DisposeAsync` allows the resources used by the value for the property. If the handle to the file is disposed, the returned task contains the exception in the property.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The stream has been disposed.
Cancellation
@@ -3559,6 +3561,8 @@ Use the property to determine whether the
If the operation is canceled before it completes, the returned task contains the value for the property. If the handle to the file is disposed, the returned task contains the exception in the property.
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
## Examples
The following example shows how to read from a file asynchronously.
@@ -3566,7 +3570,7 @@ The following example shows how to read from a file asynchronously.
:::code language="csharp" source="~/snippets/csharp/System.IO/FileStream/Overview/example4.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Asynchronous_File_IO_async/vb/example4.vb" id="Snippet4":::
- ]]>
+]]>
is .
@@ -4306,7 +4310,9 @@ If the operation is canceled before it completes, the returned task contains the
:::code language="csharp" source="~/snippets/csharp/System.IO/FileStream/Overview/example3.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Asynchronous_File_IO_async/vb/example3.vb" id="Snippet3":::
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
diff --git a/xml/System.IO/MemoryStream.xml b/xml/System.IO/MemoryStream.xml
index c4d1686b4d9..50ecf0e9ace 100644
--- a/xml/System.IO/MemoryStream.xml
+++ b/xml/System.IO/MemoryStream.xml
@@ -1132,7 +1132,7 @@ The stream is unwritable.
The token to monitor for cancellation requests.
Asynchronously reads all the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.
A task that represents the asynchronous copy operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
is .
@@ -1448,7 +1448,9 @@ The pending operation does not support writing.
You can create a cancellation token by creating an instance of the class and passing the property as the `cancellationToken` parameter.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The stream has been disposed.
Cancellation
@@ -1957,7 +1959,9 @@ The pending operation does not support writing.
You can create a cancellation token by creating an instance of the class and passing the property as the `cancellationToken` parameter.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -2593,7 +2597,9 @@ The underlying buffer will not be exposed if the current `MemoryStream` instance
You can create a cancellation token by creating an instance of the class and passing the property as the `cancellationToken` parameter.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
diff --git a/xml/System.IO/RandomAccess.xml b/xml/System.IO/RandomAccess.xml
index 2d5be6dce4c..ad877f52d98 100644
--- a/xml/System.IO/RandomAccess.xml
+++ b/xml/System.IO/RandomAccess.xml
@@ -188,7 +188,9 @@ Position of the file is not advanced.
Position of the file is not advanced.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
or is .
@@ -420,7 +422,9 @@ Position of the file is not advanced.
Position of the file is not advanced.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
or is .
diff --git a/xml/System.IO/Stream.xml b/xml/System.IO/Stream.xml
index 449306dcabb..25140ca395b 100644
--- a/xml/System.IO/Stream.xml
+++ b/xml/System.IO/Stream.xml
@@ -865,15 +865,15 @@
Copying begins at the current position in the current stream.
-
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example demonstrates how to use two objects to asynchronously copy the files from one directory to another. The class derives from the class. Notice that the event handler for the control is marked with the `async` modifier because it calls an asynchronous method
:::code language="csharp" source="~/snippets/csharp/System.IO/FileStream/Overview/example.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Asynchronous_File_IO_async/vb/example.vb" id="Snippet1":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Asynchronous_File_IO_async/vb/example.vb" id="Snippet1":::
+
+]]>
is .
@@ -942,7 +942,9 @@
For an example of copying between two streams, see the overload.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -1002,7 +1004,9 @@
For an example of copying between two streams, see the overload.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1071,7 +1075,9 @@
For an example of copying between two streams, see the overload.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -1331,7 +1337,9 @@
Calling `DisposeAsync` allows the resources used by the to be reallocated for other purposes. For more information, see [Cleaning Up Unmanaged Resources](/dotnet/standard/garbage-collection/unmanaged).
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1598,7 +1606,9 @@
## Remarks
If a derived class, such as or , does not flush the buffer in its implementation of the method, the method will not flush the buffer.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The stream has been disposed.
@@ -1660,7 +1670,9 @@
If a derived class, such as or , does not flush the buffer in its implementation of the method, the method will not flush the buffer.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The stream has been disposed.
Cancellation
@@ -2133,15 +2145,15 @@
Use the property to determine whether the current instance supports reading.
-
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to read from a file asynchronously. The example uses the class, which derives from the class.
:::code language="csharp" source="~/snippets/csharp/System.IO/FileStream/Overview/example4.cs" id="Snippet4":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Asynchronous_File_IO_async/vb/example4.vb" id="Snippet4":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Asynchronous_File_IO_async/vb/example4.vb" id="Snippet4":::
+
+]]>
is .
@@ -2220,7 +2232,9 @@
For an example, see the overload.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -2595,7 +2609,9 @@ When `buffer` is empty, this read operation will be completed without waiting fo
When `count` is 0 (zero), this read operation will be completed without waiting for available data in the stream.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -3222,15 +3238,15 @@ This member is an explicit interface member implementation. It can be used only
Use the property to determine whether the current instance supports writing.
-
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to write asynchronously to a file. The example uses the class, which derives from the class.
:::code language="csharp" source="~/snippets/csharp/System.IO/FileStream/Overview/example3.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Asynchronous_File_IO_async/vb/example3.vb" id="Snippet3":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Asynchronous_File_IO_async/vb/example3.vb" id="Snippet3":::
+
+]]>
is .
@@ -3309,7 +3325,9 @@ This member is an explicit interface member implementation. It can be used only
For an example, see the overload.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
diff --git a/xml/System.IO/StreamReader.xml b/xml/System.IO/StreamReader.xml
index 48b8dcf8862..b4882806ea8 100644
--- a/xml/System.IO/StreamReader.xml
+++ b/xml/System.IO/StreamReader.xml
@@ -2018,17 +2018,17 @@ Following a call to , any operations on th
, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to read all the characters in a file by using the method. It checks whether each character is a letter, digit, or white space before adding the character to an instance of the class.
:::code language="csharp" source="~/snippets/csharp/System.IO/StreamReader/Overview/example42.cs" id="Snippet42":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamReader/VB/example42.vb" id="Snippet42":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamReader/VB/example42.vb" id="Snippet42":::
+
+]]>
is .
@@ -2260,7 +2260,9 @@ Following a call to , any operations on th
## Remarks
The task does not complete until either the number of characters specified by the `count` parameter are read, or the end of the stream has been reached.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -2404,15 +2406,19 @@ Following a call to , any operations on th
Reads a line of characters asynchronously from the current stream and returns the data as a string.
A task that represents the asynchronous read operation. The value of the parameter contains the next line from the stream, or is if all the characters have been read.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to read the first line of a file by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StreamReader/Overview/example41.cs" id="Snippet41":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamReader/VB/example41.vb" id="Snippet41":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamReader/VB/example41.vb" id="Snippet41":::
+
+]]>
The number of characters in the next line is larger than Int32.MaxValue.
The stream has been disposed.
@@ -2458,11 +2464,11 @@ Following a call to , any operations on th
## Remarks
-If this method is canceled via `cancellationToken`, some data
- that has been read from the current but not stored (by the
- ) or returned (to the caller) may be lost.
+If this method is canceled via `cancellationToken`, some data that has been read from the current but not stored (by the ) or returned (to the caller) may be lost.
+
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
- ]]>
+]]>
The number of characters in the next line is larger than Int32.MaxValue.
The stream reader has been disposed.
@@ -2604,15 +2610,19 @@ If this method is canceled via `cancellationToken`, some data
Reads all characters from the current position to the end of the stream asynchronously and returns them as one string.
A task that represents the asynchronous read operation. The value of the parameter contains a string with the characters from the current position to the end of the stream.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to read the contents of a file by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StreamReader/Overview/example40.cs" id="Snippet40":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamReader/VB/example40.vb" id="Snippet40":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamReader/VB/example40.vb" id="Snippet40":::
+
+]]>
The number of characters is larger than Int32.MaxValue.
The stream has been disposed.
@@ -2662,7 +2672,9 @@ If this method is canceled via `cancellationToken`, some data
that has been read from the current but not stored (by the
) or returned (to the caller) may be lost.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The number of characters is larger than Int32.MaxValue.
The stream reader has been disposed.
diff --git a/xml/System.IO/StreamWriter.xml b/xml/System.IO/StreamWriter.xml
index 9cc74d73399..b36a835ea42 100644
--- a/xml/System.IO/StreamWriter.xml
+++ b/xml/System.IO/StreamWriter.xml
@@ -1454,7 +1454,7 @@ For a list of common I/O tasks, see [Common I/O Tasks](/dotnet/standard/io/commo
Clears all buffers for this stream asynchronously and causes any buffered data to be written to the underlying device.
A task that represents the asynchronous flush operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
The stream has been disposed.
@@ -2202,15 +2202,19 @@ See Asynchronously writes a character to the stream.
A task that represents the asynchronous write operation.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to write a single character (the letter "a") to a text file by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StreamWriter/AutoFlush/example20.cs" id="Snippet20":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamWriter/VB/example20.vb" id="Snippet20":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamWriter/VB/example20.vb" id="Snippet20":::
+
+]]>
The stream writer is disposed.
The stream writer is currently in use by a previous write operation.
@@ -2270,15 +2274,19 @@ See Asynchronously writes a string to the stream.
A task that represents the asynchronous write operation.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to write a string to a text file by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StreamWriter/AutoFlush/example21.cs" id="Snippet21":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamWriter/VB/example21.vb" id="Snippet21":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamWriter/VB/example21.vb" id="Snippet21":::
+
+]]>
The stream writer is disposed.
The stream writer is currently in use by a previous write operation.
@@ -2384,15 +2392,19 @@ See Asynchronously writes a subarray of characters to the stream.
A task that represents the asynchronous write operation.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to write multiple characters to a text file by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StreamWriter/AutoFlush/example24.cs" id="Snippet24":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamWriter/VB/example24.vb" id="Snippet24":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamWriter/VB/example24.vb" id="Snippet24":::
+
+]]>
is .
@@ -2954,17 +2966,17 @@ See property.
-
-
+ The line terminator is defined by the property.
+
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to write two lines that consist of string values to a text file by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StreamWriter/AutoFlush/example23.cs" id="Snippet23":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamWriter/VB/example23.vb" id="Snippet23":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.StreamWriter/VB/example23.vb" id="Snippet23":::
+
+]]>
The stream writer is disposed.
The stream writer is currently in use by a previous write operation.
diff --git a/xml/System.IO/StringReader.xml b/xml/System.IO/StringReader.xml
index eb09c8ab3ee..80e2be716a9 100644
--- a/xml/System.IO/StringReader.xml
+++ b/xml/System.IO/StringReader.xml
@@ -731,16 +731,16 @@ This implementation of `Close` calls the , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to read the first 23 characters of a string asynchronously.
:::code language="csharp" source="~/snippets/csharp/System.IO/StringReader/Overview/example1.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringreader/vb/example1.vb" id="Snippet1":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringreader/vb/example1.vb" id="Snippet1":::
+
+]]>
is .
@@ -1072,15 +1072,19 @@ This implementation of `Close` calls the Reads a line of characters asynchronously from the current string and returns the data as a string.
A task that represents the asynchronous read operation. The value of the parameter contains the next line from the string reader, or is if all the characters have been read.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to read one line at a time from a string asynchronously.
:::code language="csharp" source="~/snippets/csharp/System.IO/StringReader/Overview/example3.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringreader/vb/example3.vb" id="Snippet3":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringreader/vb/example3.vb" id="Snippet3":::
+
+]]>
The number of characters in the next line is larger than Int32.MaxValue.
The string reader has been disposed.
@@ -1121,7 +1125,7 @@ This implementation of `Close` calls the The token to monitor for cancellation requests.
Reads a line of characters asynchronously from the current string and returns the data as a string.
A value task that represents the asynchronous read operation. The value of the TResult parameter contains the next line from the string reader, or is if all of the characters have been read.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
The number of characters in the next line is larger than Int32.MaxValue.
The string reader has been disposed.
The reader is currently in use by a previous read operation.
@@ -1263,15 +1267,19 @@ This implementation of `Close` calls the Reads all characters from the current position to the end of the string asynchronously and returns them as a single string.
A task that represents the asynchronous read operation. The value of the parameter contains a string with the characters from the current position to the end of the string.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to read an entire string asynchronously.
:::code language="csharp" source="~/snippets/csharp/System.IO/StringReader/Overview/example2.cs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringreader/vb/example2.vb" id="Snippet2":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringreader/vb/example2.vb" id="Snippet2":::
+
+]]>
The number of characters is larger than Int32.MaxValue.
The string reader has been disposed.
@@ -1312,7 +1320,7 @@ This implementation of `Close` calls the The token to monitor for cancellation requests.
Reads all characters from the current position to the end of the string asynchronously and returns them as a single string.
A task that represents the asynchronous read operation. The value of the TResult parameter contains a string with the characters from the current position to the end of the string.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
The number of characters is larger than Int32.MaxValue.
The string reader has been disposed.
The reader is currently in use by a previous read operation.
diff --git a/xml/System.IO/StringWriter.xml b/xml/System.IO/StringWriter.xml
index 84c1bccb5cf..59104be8e91 100644
--- a/xml/System.IO/StringWriter.xml
+++ b/xml/System.IO/StringWriter.xml
@@ -1323,15 +1323,19 @@
Writes a character to the string asynchronously.
A task that represents the asynchronous write operation.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to write characters by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StringWriter/WriteAsync/example5.cs" id="Snippet5":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringwriter/vb/example5.vb" id="Snippet5":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringwriter/vb/example5.vb" id="Snippet5":::
+
+]]>
The string writer is disposed.
The string writer is currently in use by a previous write operation.
@@ -1391,15 +1395,19 @@
Writes a string to the current string asynchronously.
A task that represents the asynchronous write operation.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to write a string by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StringWriter/WriteAsync/example4.cs" id="Snippet4":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringwriter/vb/example4.vb" id="Snippet4":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringwriter/vb/example4.vb" id="Snippet4":::
+
+]]>
The string writer is disposed.
The string writer is currently in use by a previous write operation.
@@ -1487,7 +1495,7 @@
The token to monitor for cancellation requests. The default value is .
Asynchronously writes the text representation of a string builder to the string.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1547,15 +1555,19 @@
Writes a subarray of characters to the string asynchronously.
A task that represents the asynchronous write operation.
- , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
## Examples
The following example shows how to write characters by using the method.
:::code language="csharp" source="~/snippets/csharp/System.IO/StringWriter/WriteAsync/example6.cs" id="Snippet6":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringwriter/vb/example6.vb" id="Snippet6":::
-
- ]]>
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.stringwriter/vb/example6.vb" id="Snippet6":::
+
+]]>
is .
@@ -1884,7 +1896,7 @@ The following example shows how to write a string by using the The token to monitor for cancellation requests. The default value is .
Asynchronously writes the string representation of the string builder to the current string, followed by a line terminator.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO/TextReader.xml b/xml/System.IO/TextReader.xml
index c35ab9d2ed3..8ec9f884c13 100644
--- a/xml/System.IO/TextReader.xml
+++ b/xml/System.IO/TextReader.xml
@@ -796,7 +796,9 @@
The class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the method, see the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -1039,7 +1041,9 @@
## Remarks
The task does not complete until either the number of characters specified by the `count` parameter are read, or the end of the text has been reached.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -1184,7 +1188,9 @@
If the current represents the standard input stream returned by the property, the method executes synchronously rather than asynchronously.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The number of characters in the next line is larger than Int32.MaxValue.
The text reader has been disposed.
@@ -1243,7 +1249,9 @@ If the current represents the standard input stream
the `Console.In` property, the method
executes synchronously rather than asynchronously.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The number of characters in the next line is larger than Int32.MaxValue.
The text reader has been disposed.
@@ -1377,7 +1385,9 @@ If the current represents the standard input stream
## Remarks
The class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the method, see the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The number of characters is larger than Int32.MaxValue.
The text reader has been disposed.
@@ -1432,7 +1442,9 @@ The class is an abstract class. Therefore, you do no
your code. For an example of using the method, see the
method.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The number of characters is larger than Int32.MaxValue.
The text reader has been disposed.
diff --git a/xml/System.IO/TextWriter.xml b/xml/System.IO/TextWriter.xml
index cb101893133..d94a4ca4692 100644
--- a/xml/System.IO/TextWriter.xml
+++ b/xml/System.IO/TextWriter.xml
@@ -549,7 +549,7 @@
Asynchronously releases all resources used by the object.
A task that represents the asynchronous dispose operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -723,7 +723,7 @@
Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
A task that represents the asynchronous flush operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
The text writer is disposed.
The writer is currently in use by a previous write operation.
@@ -2586,7 +2586,9 @@ This method is equivalent to `Write(stringBuilder.ToString())`, but it uses the
## Remarks
The class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the method, see the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The text writer is disposed.
The text writer is currently in use by a previous write operation.
@@ -2647,7 +2649,7 @@ This method is equivalent to `Write(stringBuilder.ToString())`, but it uses the
The character array to write to the text stream. If is , nothing is written.
Writes a character array to the text stream asynchronously.
A task that represents the asynchronous write operation.
- To be added.
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
The text writer is disposed.
The text writer is currently in use by a previous write operation.
@@ -2713,7 +2715,9 @@ This method is equivalent to `Write(stringBuilder.ToString())`, but it uses the
## Remarks
The class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the method, see the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The text writer is disposed.
The text writer is currently in use by a previous write operation.
@@ -2810,7 +2814,9 @@ This method is equivalent to `Write(stringBuilder.ToString())`, but it uses the
This method is equivalent to calling `WriteAsync(stringBuilder.ToString())`, however, it uses the method to avoid creating the intermediate string.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -2876,7 +2882,9 @@ This method is equivalent to calling `WriteAsync(stringBuilder.ToString())`, how
## Remarks
The class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the method, see the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
@@ -4548,7 +4556,9 @@ The class is an abstract class. Therefore, you do no
The line terminator is defined by the field.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The text writer is disposed.
The text writer is currently in use by a previous write operation.
@@ -4615,7 +4625,9 @@ The line terminator is defined by the fi
The class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the method, see the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The text writer is disposed.
The text writer is currently in use by a previous write operation.
@@ -4682,7 +4694,9 @@ The line terminator is defined by the fi
## Remarks
The line terminator is defined by the field.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The text writer is disposed.
The text writer is currently in use by a previous write operation.
@@ -4751,7 +4765,9 @@ The line terminator is defined by the fi
The class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the method, see the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The text writer is disposed.
The text writer is currently in use by a previous write operation.
@@ -4856,7 +4872,9 @@ The line terminator is defined by the fi
The line terminator is defined by the field.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -4923,7 +4941,9 @@ The line terminator is defined by the fi
The line terminator is defined by the field.
- ]]>
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
is .
diff --git a/xml/System.IO/UnmanagedMemoryStream.xml b/xml/System.IO/UnmanagedMemoryStream.xml
index 8606d836470..10abfa87a0d 100644
--- a/xml/System.IO/UnmanagedMemoryStream.xml
+++ b/xml/System.IO/UnmanagedMemoryStream.xml
@@ -833,7 +833,9 @@
## Remarks
If the operation isn't cancelled, the calls the method, which means that no action performed.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1432,7 +1434,9 @@ This method is equivalent to the of the property of the returned task.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1898,7 +1902,9 @@ If an exception occurs during the write operation, it will be set as the of the property of the returned task.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.IdentityModel.Selectors/SecurityTokenProvider.xml b/xml/System.IdentityModel.Selectors/SecurityTokenProvider.xml
index 8a0e7157d4d..2196d703ec1 100644
--- a/xml/System.IdentityModel.Selectors/SecurityTokenProvider.xml
+++ b/xml/System.IdentityModel.Selectors/SecurityTokenProvider.xml
@@ -460,7 +460,9 @@
The method calls method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -546,7 +548,9 @@
When the method is overridden and the security token passed into the token parameter cannot be canceled, throw the exception.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -880,7 +884,9 @@
In most cases the `timeout` parameter is not used by derived classes of such as . However, sometimes retrieving a security token involves distributed messaging. An example is used in a federated service. In these cases the `timeout` parameter is used to avoid exceptions caused by network failures, message loss, and other error conditions.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -967,8 +973,11 @@
The method is called by the class when a client sends a SOAP message and a security token is required.
- The method calls the method.
- ]]>
+ The method calls the method.
+
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1058,7 +1067,9 @@
The method calls the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
@@ -1152,7 +1163,9 @@
The method calls the method.
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
diff --git a/xml/System.Media/SoundPlayer.xml b/xml/System.Media/SoundPlayer.xml
index dca88013f57..ab0386569aa 100644
--- a/xml/System.Media/SoundPlayer.xml
+++ b/xml/System.Media/SoundPlayer.xml
@@ -375,7 +375,9 @@
:::code language="csharp" source="~/snippets/csharp/System.Media/SoundPlayer/Overview/soundtestform.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Sound/VB/soundtestform.vb" id="Snippet3":::
- ]]>
+ This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The elapsed time during loading exceeds the time, in milliseconds, specified by .
The file specified by cannot be found.
diff --git a/xml/System.Net.Http/HttpClient.xml b/xml/System.Net.Http/HttpClient.xml
index ea9727d777e..ad1220da893 100644
--- a/xml/System.Net.Http/HttpClient.xml
+++ b/xml/System.Net.Http/HttpClient.xml
@@ -3231,7 +3231,10 @@ The custom does not override
> - is thrown on all applicable .NET Framework versions.
> - without any inner exception is thrown on all applicable .NET Core versions.
> - that nests a is thrown on .NET 5 and later versions.
- ]]>
+
+This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+
+]]>
The is .
The request message was already sent by the instance.
@@ -3287,7 +3290,10 @@ The custom does not override
> - is thrown on all applicable .NET Framework versions.
> - without any inner exception is thrown on all applicable .NET Core versions.
> -