You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<paramname="cancellationToken">To be added.</param>
900
-
<summary>To be added.</summary>
901
-
<returns>To be added.</returns>
902
-
<remarks>To be added.</remarks>
898
+
<paramname="destination">The stream to which the contents of the current stream will be copied.</param>
899
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="P:System.Threading.CancellationToken.None" />.</param>
900
+
<summary>Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified cancellation token.</summary>
901
+
<returns>A task that represents the asynchronous copy operation.</returns>
902
+
<remarks><formattype="text/markdown"><] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] 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 `async` and `await` keywords in Visual Basic and C#.
906
+
907
+
If the operation is canceled before it completes, the returned task contains the <xref:System.Threading.Tasks.TaskStatus.Canceled> value for the <xref:System.Threading.Tasks.Task.Status%2A> property.
908
+
909
+
Copying begins at the current position in the current stream.
910
+
911
+
For an example of copying between two streams, see the <xref:System.IO.Stream.CopyToAsync%28System.IO.Stream%29> overload.
912
+
913
+
]]></format></remarks>
903
914
</Docs>
904
915
</Member>
905
916
<MemberMemberName="CopyToAsync">
@@ -1184,9 +1195,20 @@
1184
1195
</ReturnValue>
1185
1196
<Parameters />
1186
1197
<Docs>
1187
-
<summary>To be added.</summary>
1188
-
<returns>To be added.</returns>
1189
-
<remarks>To be added.</remarks>
1198
+
<summary>Asynchronously releases the unmanaged resources used by the <seecref="T:System.IO.Stream" />.</summary>
1199
+
<returns>A task that represents the asynchronous dispose operation.</returns>
1200
+
<remarks>
1201
+
<formattype="text/markdown"><] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] 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 `async` and `await` keywords in Visual Basic and C#.
1205
+
1206
+
This method disposes the stream by writing any changes to the backing store and closing the stream to release resources.
1207
+
1208
+
Calling `DisposeAsync` allows the resources used by the <xref:System.IO.Stream> to be reallocated for other purposes. For more information, see [Cleaning Up Unmanaged Resources](~/docs/standard/garbage-collection/unmanaged.md).
<paramname="buffer">A region of memory. When this method returns, the contents of this region are replaced by the bytes read from the current source.</param>
1743
+
<summary>When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</summary>
1744
+
<returns>The total number of bytes read into the buffer. This can be less than the number of bytes allocated in the buffer if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.</returns>
1745
+
<remarks>
1746
+
<formattype="text/markdown"><] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] 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 `async` and `await` keywords in Visual Basic and C#.
1886
+
1887
+
Use the <xref:System.IO.Stream.CanRead%2A> property to determine whether the current instance supports reading.
1888
+
1889
+
If the operation is canceled before it completes, the returned task contains the <xref:System.Threading.Tasks.TaskStatus.Canceled?displayProperty=nameWithType> value for the <xref:System.Threading.Tasks.Task.Status> property.
1890
+
1891
+
For an example, see the <xref:System.IO.Stream.ReadAsync%28System.Byte%5B%5D%2CSystem.Int32%2CSystem.Int32%29> overload.
1892
+
1893
+
]]></format>
1894
+
</remarks>
1849
1895
</Docs>
1850
1896
</Member>
1851
1897
<MemberMemberName="ReadAsync">
@@ -2350,9 +2396,18 @@ This member is an explicit interface member implementation. It can be used only
<paramname="buffer">A region of memory. This method copies the contents of this region to the current stream.</param>
2400
+
<summary>When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.</summary>
2401
+
<remarks>
2402
+
<formattype="text/markdown"><![CDATA[
2403
+
2404
+
## Remarks
2405
+
Use the <xref:System.IO.Stream.CanWrite%2A> property to determine whether the current instance supports writing. Use the <xref:System.IO.Stream.WriteAsync%2A> method to write asynchronously to the current stream.
2406
+
2407
+
If the write operation is successful, the position within the stream advances by the number of bytes written. If an exception occurs, the position within the stream remains unchanged.
2408
+
2409
+
]]></format>
2410
+
</remarks>
2356
2411
</Docs>
2357
2412
</Member>
2358
2413
<MemberMemberName="Write">
@@ -2462,11 +2517,24 @@ This member is an explicit interface member implementation. It can be used only
<paramname="cancellationToken">To be added.</param>
2467
-
<summary>To be added.</summary>
2468
-
<returns>To be added.</returns>
2469
-
<remarks>To be added.</remarks>
2520
+
<paramname="buffer">The region of memory to write data from.</param>
2521
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="P:System.Threading.CancellationToken.None" />.</param>
2522
+
<summary>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.</summary>
2523
+
<returns>A task that represents the asynchronous write operation.</returns>
2524
+
<remarks>
2525
+
<formattype="text/markdown"><] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] 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 `async` and `await` keywords in Visual Basic and C#.
2529
+
2530
+
Use the <xref:System.IO.Stream.CanWrite%2A> property to determine whether the current instance supports writing.
2531
+
2532
+
If the operation is canceled before it completes, the returned task contains the <xref:System.Threading.Tasks.TaskStatus.Canceled> value for the <xref:System.Threading.Tasks.Task.Status%2A> property.
2533
+
2534
+
For an example, see the <xref:System.IO.Stream.WriteAsync%28System.Byte%5B%5D%2CSystem.Int32%2CSystem.Int32%29> overload.
2535
+
2536
+
]]></format>
2537
+
</remarks>
2470
2538
</Docs>
2471
2539
</Member>
2472
2540
<MemberMemberName="WriteAsync">
@@ -2727,4 +2795,4 @@ This member is an explicit interface member implementation. It can be used only
0 commit comments