packages/Microsoft.Bcl.Async.1.0.168/lib/portable-net45+win8+wp8+wpa81/Microsoft.Threading.Tasks.Extensions.xml
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Threading.Tasks.Extensions</name>
</assembly>
<members>
<member name="M:System.Threading.Tasks.TaskServices.FromCancellation(System.Threading.CancellationToken)">
<summary>Returns a canceled task.</summary>
<param name="cancellationToken">The cancellation token.</param>
<returns>The canceled task.</returns>
</member>
<member name="M:System.Threading.Tasks.TaskServices.FromCancellation``1(System.Threading.CancellationToken)">
<summary>Returns a canceled task.</summary>
<typeparam name="TResult">Specifies the type of the result.</typeparam>
<param name="cancellationToken">The cancellation token.</param>
<returns>The canceled task.</returns>
</member>
<member name="M:System.Threading.Tasks.TaskServices.HandleEapCompletion``1(System.Threading.Tasks.TaskCompletionSource{``0},System.Boolean,System.ComponentModel.AsyncCompletedEventArgs,System.Func{``0},System.Action)">
<summary>
Completes the Task if the user state matches the TaskCompletionSource.
</summary>
<typeparam name="T">Specifies the type of data returned by the Task.</typeparam>
<param name="tcs">The TaskCompletionSource.</param>
<param name="e">The completion event arguments.</param>
<param name="requireMatch">Whether we require the tcs to match the e.UserState.</param>
<param name="getResult">A function that gets the result with which to complete the task.</param>
<param name="unregisterHandler">An action used to unregister work when the operaiton completes.</param>
</member>
<member name="T:AsyncExtensions">
<summary>
Provides asynchronous wrappers for .NET Framework operations.
</summary>
</member>
<member name="M:AsyncExtensions.ReadAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32)">
<summary>
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
</summary>
<returns>A Task that represents the asynchronous read.</returns>
<param name="source">The source.</param>
<param name="buffer">The buffer to read data into. </param>
<param name="offset">The byte offset in at which to begin reading. </param>
<param name="count">The maximum number of bytes to read. </param>
<exception cref="T:System.ArgumentException">The array length minus is less than <paramref name="count" />. </exception>
<exception cref="T:System.ArgumentNullException"> is null. </exception>
<exception cref="T:System.ArgumentOutOfRangeException"> or <paramref name="count" /> is negative. </exception>
<exception cref="T:System.IO.IOException">An asynchronous read was attempted past the end of the file. </exception>
</member>
<member name="M:AsyncExtensions.ReadAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
<summary>
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
</summary>
<returns>A Task that represents the asynchronous read.</returns>
<param name="source">The source.</param>
<param name="buffer">The buffer to read data into. </param>
<param name="offset">The byte offset in at which to begin reading. </param>
<param name="count">The maximum number of bytes to read. </param>
<param name="cancellationToken">The cancellation token.</param>
<exception cref="T:System.ArgumentException">The array length minus is less than <paramref name="count" />. </exception>
<exception cref="T:System.ArgumentNullException"> is null. </exception>
<exception cref="T:System.ArgumentOutOfRangeException"> or <paramref name="count" /> is negative. </exception>
后面还有 215 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
