ByteArrayContent.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="ByteArrayContent" FullName="System.Net.Http.ByteArrayContent">
  3. <TypeSignature Language="C#" Value="public class ByteArrayContent : System.Net.Http.HttpContent" />
  4. <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ByteArrayContent extends System.Net.Http.HttpContent" />
  5. <AssemblyInfo>
  6. <AssemblyName>System.Net.Http</AssemblyName>
  7. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  8. </AssemblyInfo>
  9. <Base>
  10. <BaseTypeName>System.Net.Http.HttpContent</BaseTypeName>
  11. </Base>
  12. <Interfaces />
  13. <Docs>
  14. <remarks>To be added.</remarks>
  15. <summary>
  16. <attribution license="cc4" from="Microsoft" modified="false" />
  17. <para>Provides HTTP content based on a byte array.</para>
  18. </summary>
  19. </Docs>
  20. <Members>
  21. <Member MemberName=".ctor">
  22. <MemberSignature Language="C#" Value="public ByteArrayContent (byte[] content);" />
  23. <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] content) cil managed" />
  24. <MemberType>Constructor</MemberType>
  25. <AssemblyInfo>
  26. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  27. </AssemblyInfo>
  28. <Parameters>
  29. <Parameter Name="content" Type="System.Byte[]" />
  30. </Parameters>
  31. <Docs>
  32. <remarks>To be added.</remarks>
  33. <summary>
  34. <attribution license="cc4" from="Microsoft" modified="false" />
  35. <para>Initializes a new instance of the <see cref="T:System.Net.Http.ByteArrayContent" /> class.</para>
  36. </summary>
  37. <param name="content">
  38. <attribution license="cc4" from="Microsoft" modified="false" />The content used to initialize the <see cref="T:System.Net.Http.ByteArrayContent" />.</param>
  39. </Docs>
  40. </Member>
  41. <Member MemberName=".ctor">
  42. <MemberSignature Language="C#" Value="public ByteArrayContent (byte[] content, int offset, int count);" />
  43. <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8[] content, int32 offset, int32 count) cil managed" />
  44. <MemberType>Constructor</MemberType>
  45. <AssemblyInfo>
  46. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  47. </AssemblyInfo>
  48. <Parameters>
  49. <Parameter Name="content" Type="System.Byte[]" />
  50. <Parameter Name="offset" Type="System.Int32" />
  51. <Parameter Name="count" Type="System.Int32" />
  52. </Parameters>
  53. <Docs>
  54. <remarks>
  55. <attribution license="cc4" from="Microsoft" modified="false" />
  56. <para>Only the range specified by the <paramref name="offset" /> parameter and the <paramref name="count " /> parameter is used as content. Syntax</para>
  57. </remarks>
  58. <summary>
  59. <attribution license="cc4" from="Microsoft" modified="false" />
  60. <para>Initializes a new instance of the <see cref="T:System.Net.Http.ByteArrayContent" /> class.</para>
  61. </summary>
  62. <param name="content">
  63. <attribution license="cc4" from="Microsoft" modified="false" />The content used to initialize the <see cref="T:System.Net.Http.ByteArrayContent" />.</param>
  64. <param name="offset">
  65. <attribution license="cc4" from="Microsoft" modified="false" />The offset, in bytes, in the <paramref name="content" /> parameter used to initialize the <see cref="T:System.Net.Http.ByteArrayContent" />.</param>
  66. <param name="count">
  67. <attribution license="cc4" from="Microsoft" modified="false" />The number of bytes in the <paramref name="content" /> starting from the <paramref name="offset" /> parameter used to initialize the <see cref="T:System.Net.Http.ByteArrayContent" />.</param>
  68. </Docs>
  69. </Member>
  70. <Member MemberName="CreateContentReadStreamAsync">
  71. <MemberSignature Language="C#" Value="protected override System.Threading.Tasks.Task&lt;System.IO.Stream&gt; CreateContentReadStreamAsync ();" />
  72. <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Threading.Tasks.Task`1&lt;class System.IO.Stream&gt; CreateContentReadStreamAsync() cil managed" />
  73. <MemberType>Method</MemberType>
  74. <AssemblyInfo>
  75. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  76. </AssemblyInfo>
  77. <ReturnValue>
  78. <ReturnType>System.Threading.Tasks.Task&lt;System.IO.Stream&gt;</ReturnType>
  79. </ReturnValue>
  80. <Parameters />
  81. <Docs>
  82. <remarks>
  83. <attribution license="cc4" from="Microsoft" modified="false" />
  84. <para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" />object will complete after all of the content stream has been created.</para>
  85. </remarks>
  86. <summary>
  87. <attribution license="cc4" from="Microsoft" modified="false" />
  88. <para>Creates an HTTP content stream as an asynchronous operation for reading whose backing store is memory from the <see cref="T:System.Net.Http.ByteArrayContent" />.</para>
  89. </summary>
  90. <returns>
  91. <attribution license="cc4" from="Microsoft" modified="false" />
  92. <para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
  93. <para>The task object representing the asynchronous operation.</para>
  94. </returns>
  95. </Docs>
  96. </Member>
  97. <Member MemberName="SerializeToStreamAsync">
  98. <MemberSignature Language="C#" Value="protected override System.Threading.Tasks.Task SerializeToStreamAsync (System.IO.Stream stream, System.Net.TransportContext context);" />
  99. <MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance class System.Threading.Tasks.Task SerializeToStreamAsync(class System.IO.Stream stream, class System.Net.TransportContext context) cil managed" />
  100. <MemberType>Method</MemberType>
  101. <AssemblyInfo>
  102. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  103. </AssemblyInfo>
  104. <ReturnValue>
  105. <ReturnType>System.Threading.Tasks.Task</ReturnType>
  106. </ReturnValue>
  107. <Parameters>
  108. <Parameter Name="stream" Type="System.IO.Stream" />
  109. <Parameter Name="context" Type="System.Net.TransportContext" />
  110. </Parameters>
  111. <Docs>
  112. <remarks>
  113. <attribution license="cc4" from="Microsoft" modified="false" />
  114. <para>This operation does not block. When the returned <see cref="T:System.Threading.Tasks.Task" /> object completes, the whole byte array has been written to the <paramref name="stream" /> parameter.</para>
  115. </remarks>
  116. <summary>
  117. <attribution license="cc4" from="Microsoft" modified="false" />
  118. <para>Serialize and write the byte array provided in the constructor to an HTTP content stream as an asynchronous operation.</para>
  119. </summary>
  120. <returns>
  121. <attribution license="cc4" from="Microsoft" modified="false" />
  122. <para>Returns <see cref="T:System.Threading.Tasks.Task" />. </para>
  123. <para>The task object representing the asynchronous operation.</para>
  124. </returns>
  125. <param name="stream">
  126. <attribution license="cc4" from="Microsoft" modified="false" />The target stream.</param>
  127. <param name="context">
  128. <attribution license="cc4" from="Microsoft" modified="false" />Information about the transport, like channel binding token. This parameter may be null.</param>
  129. </Docs>
  130. </Member>
  131. <Member MemberName="TryComputeLength">
  132. <MemberSignature Language="C#" Value="protected override bool TryComputeLength (out long length);" />
  133. <MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance bool TryComputeLength(int64 length) cil managed" />
  134. <MemberType>Method</MemberType>
  135. <AssemblyInfo>
  136. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  137. </AssemblyInfo>
  138. <ReturnValue>
  139. <ReturnType>System.Boolean</ReturnType>
  140. </ReturnValue>
  141. <Parameters>
  142. <Parameter Name="length" Type="System.Int64&amp;" RefType="out" />
  143. </Parameters>
  144. <Docs>
  145. <param name="length">To be added.</param>
  146. <summary>To be added.</summary>
  147. <returns>To be added.</returns>
  148. <remarks>To be added.</remarks>
  149. </Docs>
  150. </Member>
  151. </Members>
  152. </Type>