You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

System.IO.Compression.xml 36 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <doc>
  3. <assembly>
  4. <name>System.IO.Compression</name>
  5. </assembly>
  6. <members>
  7. <member name="T:System.IO.Compression.CompressionLevel">
  8. <summary>指定表明是否压缩操作重点介绍速度或压缩大小的值。</summary>
  9. </member>
  10. <member name="F:System.IO.Compression.CompressionLevel.Fastest">
  11. <summary>即使结果文件未可选择性地压缩,压缩操作也应尽快完成。</summary>
  12. </member>
  13. <member name="F:System.IO.Compression.CompressionLevel.NoCompression">
  14. <summary>该文件不应执行压缩。</summary>
  15. </member>
  16. <member name="F:System.IO.Compression.CompressionLevel.Optimal">
  17. <summary>即使操作要用更长的时间来完成,也应该可选性地压缩压缩操作。</summary>
  18. </member>
  19. <member name="T:System.IO.Compression.CompressionMode">
  20. <summary> 指定是否压缩或解压缩基础流。</summary>
  21. </member>
  22. <member name="F:System.IO.Compression.CompressionMode.Compress">
  23. <summary>压缩基础流。</summary>
  24. </member>
  25. <member name="F:System.IO.Compression.CompressionMode.Decompress">
  26. <summary>解压缩基础流。</summary>
  27. </member>
  28. <member name="T:System.IO.Compression.DeflateStream">
  29. <summary>提供使用 Deflate 算法压缩和解压缩流的方法和属性。</summary>
  30. </member>
  31. <member name="M:System.IO.Compression.DeflateStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionLevel)">
  32. <summary>用指定的流和压缩级别初始化 <see cref="T:System.IO.Compression.DeflateStream" /> 类的新实例。</summary>
  33. <param name="stream">要压缩的流。</param>
  34. <param name="compressionLevel">压缩流时,指示是否要强调速度或压缩效率的枚举值之一。</param>
  35. <exception cref="T:System.ArgumentNullException">
  36. <paramref name="stream" /> 为 null。</exception>
  37. <exception cref="T:System.ArgumentException">流不支持写入操作,如压缩。(流对象上的 <see cref="P:System.IO.Stream.CanWrite" /> 属性是 false。)</exception>
  38. </member>
  39. <member name="M:System.IO.Compression.DeflateStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionLevel,System.Boolean)">
  40. <summary>使用指定的流和压缩级别,初始化 <see cref="T:System.IO.Compression.DeflateStream" /> 类的新实例,有选择性的打开流。</summary>
  41. <param name="stream">要压缩的流。</param>
  42. <param name="compressionLevel">压缩流时,指示是否要强调速度或压缩效率的枚举值之一。</param>
  43. <param name="leaveOpen">如果在释放 <see cref="T:System.IO.Compression.DeflateStream" /> 对象之后打开流对象,则为 true;否则为 false。</param>
  44. <exception cref="T:System.ArgumentNullException">
  45. <paramref name="stream" /> 为 null。</exception>
  46. <exception cref="T:System.ArgumentException">流不支持写入操作,如压缩。(流对象上的 <see cref="P:System.IO.Stream.CanWrite" /> 属性是 false。)</exception>
  47. </member>
  48. <member name="M:System.IO.Compression.DeflateStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionMode)">
  49. <summary>用指定的流和压缩模式初始化 <see cref="T:System.IO.Compression.DeflateStream" /> 类的新实例。</summary>
  50. <param name="stream">要压缩或解压缩的流。</param>
  51. <param name="mode">指示是要压缩还是解压缩流的枚举值之一。</param>
  52. <exception cref="T:System.ArgumentNullException">
  53. <paramref name="stream" /> 为 null。</exception>
  54. <exception cref="T:System.ArgumentException">
  55. <paramref name="mode" /> 不是有效的 <see cref="T:System.IO.Compression.CompressionMode" /> 值。- 或 -<see cref="T:System.IO.Compression.CompressionMode" /> 为 <see cref="F:System.IO.Compression.CompressionMode.Compress" /> 且 <see cref="P:System.IO.Stream.CanWrite" /> 为 false。- 或 -<see cref="T:System.IO.Compression.CompressionMode" /> 为 <see cref="F:System.IO.Compression.CompressionMode.Decompress" /> 且 <see cref="P:System.IO.Stream.CanRead" /> 为 false。</exception>
  56. </member>
  57. <member name="M:System.IO.Compression.DeflateStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionMode,System.Boolean)">
  58. <summary>使用指定的流和压缩模式,初始化 <see cref="T:System.IO.Compression.DeflateStream" /> 类的新实例,有选择性的打开流。</summary>
  59. <param name="stream">要压缩或解压缩的流。</param>
  60. <param name="mode">指示是要压缩还是解压缩流的枚举值之一。</param>
  61. <param name="leaveOpen">如果在释放 <see cref="T:System.IO.Compression.DeflateStream" /> 对象之后打开流,则为 true;否则为 false。</param>
  62. <exception cref="T:System.ArgumentNullException">
  63. <paramref name="stream" /> 为 null。</exception>
  64. <exception cref="T:System.ArgumentException">
  65. <paramref name="mode" /> 不是有效的 <see cref="T:System.IO.Compression.CompressionMode" /> 值。- 或 -<see cref="T:System.IO.Compression.CompressionMode" /> 为 <see cref="F:System.IO.Compression.CompressionMode.Compress" /> 且 <see cref="P:System.IO.Stream.CanWrite" /> 为 false。- 或 -<see cref="T:System.IO.Compression.CompressionMode" /> 为 <see cref="F:System.IO.Compression.CompressionMode.Decompress" /> 且 <see cref="P:System.IO.Stream.CanRead" /> 为 false。</exception>
  66. </member>
  67. <member name="P:System.IO.Compression.DeflateStream.BaseStream">
  68. <summary>获取对基础流的引用。</summary>
  69. <returns>表示基础流的流对象。</returns>
  70. <exception cref="T:System.ObjectDisposedException">基础流已关闭。</exception>
  71. </member>
  72. <member name="P:System.IO.Compression.DeflateStream.CanRead">
  73. <summary>获取一个值,该值指示流是否支持在解压缩文件的过程中读取文件。</summary>
  74. <returns>如果 <see cref="T:System.IO.Compression.CompressionMode" /> 值为 Decompress 而且基础流已打开并支持读取,则为 true;否则为 false。</returns>
  75. </member>
  76. <member name="P:System.IO.Compression.DeflateStream.CanSeek">
  77. <summary>获取一个值,该值指示流是否支持查找。</summary>
  78. <returns>在所有情况下均为 false。</returns>
  79. </member>
  80. <member name="P:System.IO.Compression.DeflateStream.CanWrite">
  81. <summary>获取一个值,该值指示流是否支持写入。</summary>
  82. <returns>如果 <see cref="T:System.IO.Compression.CompressionMode" /> 值为 Compress 而且基础流未关闭并支持写入,则为 true;否则为 false。</returns>
  83. </member>
  84. <member name="M:System.IO.Compression.DeflateStream.Dispose(System.Boolean)">
  85. <summary>释放由 <see cref="T:System.IO.Compression.DeflateStream" /> 占用的非托管资源,还可以释放托管资源。</summary>
  86. <param name="disposing">若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 false。</param>
  87. </member>
  88. <member name="M:System.IO.Compression.DeflateStream.Flush">
  89. <summary>此方法的当前实现没有任何功能。</summary>
  90. <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
  91. <PermissionSet>
  92. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  93. </PermissionSet>
  94. </member>
  95. <member name="P:System.IO.Compression.DeflateStream.Length">
  96. <summary>此属性不受支持,并且总是引发 <see cref="T:System.NotSupportedException" />。</summary>
  97. <returns>一个长值。</returns>
  98. <exception cref="T:System.NotSupportedException">此流中不支持此属性。</exception>
  99. <PermissionSet>
  100. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  101. </PermissionSet>
  102. </member>
  103. <member name="P:System.IO.Compression.DeflateStream.Position">
  104. <summary>此属性不受支持,并且总是引发 <see cref="T:System.NotSupportedException" />。</summary>
  105. <returns>一个长值。</returns>
  106. <exception cref="T:System.NotSupportedException">此流中不支持此属性。</exception>
  107. <PermissionSet>
  108. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  109. </PermissionSet>
  110. </member>
  111. <member name="M:System.IO.Compression.DeflateStream.Read(System.Byte[],System.Int32,System.Int32)">
  112. <summary>将若干解压缩的字节读入指定的字节数组。</summary>
  113. <returns>已读入到字节数组中的字节数。</returns>
  114. <param name="array">用于存储解压缩的字节的数组。</param>
  115. <param name="offset">
  116. <paramref name="array" /> 中的字节偏移量,将在此处放置读取的字节。</param>
  117. <param name="count">最多要读取的解压缩字节数。</param>
  118. <exception cref="T:System.ArgumentNullException">
  119. <paramref name="array" /> 为 null。</exception>
  120. <exception cref="T:System.InvalidOperationException">创建对象时 <see cref="T:System.IO.Compression.CompressionMode" /> 值是 Compress。- 或 - 基础流不支持读取。</exception>
  121. <exception cref="T:System.ArgumentOutOfRangeException">
  122. <paramref name="offset" /> 或 <paramref name="count" /> 小于零。- 或 -<paramref name="array" /> 长度减去索引起始点小于 <paramref name="count" />。</exception>
  123. <exception cref="T:System.IO.InvalidDataException">数据的格式无效。</exception>
  124. <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
  125. </member>
  126. <member name="M:System.IO.Compression.DeflateStream.Seek(System.Int64,System.IO.SeekOrigin)">
  127. <summary>此操作不受支持,它总是引发 <see cref="T:System.NotSupportedException" />。</summary>
  128. <returns>一个长值。</returns>
  129. <param name="offset">流中的位置。</param>
  130. <param name="origin">
  131. <see cref="T:System.IO.SeekOrigin" /> 值之一。</param>
  132. <exception cref="T:System.NotSupportedException">此流中不支持此属性。</exception>
  133. </member>
  134. <member name="M:System.IO.Compression.DeflateStream.SetLength(System.Int64)">
  135. <summary>此操作不受支持,它总是引发 <see cref="T:System.NotSupportedException" />。</summary>
  136. <param name="value">流的长度。</param>
  137. <exception cref="T:System.NotSupportedException">此流中不支持此属性。</exception>
  138. </member>
  139. <member name="M:System.IO.Compression.DeflateStream.Write(System.Byte[],System.Int32,System.Int32)">
  140. <summary>从指定的字节数组中将压缩的字节写入基础流。</summary>
  141. <param name="array">包含要压缩的数据的缓冲区。</param>
  142. <param name="offset">
  143. <paramref name="array" /> 中的字节偏移量,将在此处读取字节。</param>
  144. <param name="count">最多写入的字节数。</param>
  145. </member>
  146. <member name="T:System.IO.Compression.GZipStream">
  147. <summary>提供用于压缩和解压缩流的方法和属性。</summary>
  148. </member>
  149. <member name="M:System.IO.Compression.GZipStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionLevel)">
  150. <summary>用指定的流和压缩级别初始化 <see cref="T:System.IO.Compression.GZipStream" /> 类的新实例。</summary>
  151. <param name="stream">要将压缩数据写入到其中的流。</param>
  152. <param name="compressionLevel">压缩流时,指示是否要强调速度或压缩效率的枚举值之一。</param>
  153. <exception cref="T:System.ArgumentNullException">
  154. <paramref name="stream" /> 为 null。</exception>
  155. <exception cref="T:System.ArgumentException">流不支持写入操作,如压缩。(流对象上的 <see cref="P:System.IO.Stream.CanWrite" /> 属性是 false。)</exception>
  156. </member>
  157. <member name="M:System.IO.Compression.GZipStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionLevel,System.Boolean)">
  158. <summary>使用指定的流和压缩级别,初始化 <see cref="T:System.IO.Compression.GZipStream" /> 类的新实例,有选择性的打开流。</summary>
  159. <param name="stream">要将压缩数据写入到其中的流。</param>
  160. <param name="compressionLevel">压缩流时,指示是否要强调速度或压缩效率的枚举值之一。</param>
  161. <param name="leaveOpen">如果在释放 <see cref="T:System.IO.Compression.GZipStream" /> 对象之后打开流对象,则为 true;否则为 false。</param>
  162. <exception cref="T:System.ArgumentNullException">
  163. <paramref name="stream" /> 为 null。</exception>
  164. <exception cref="T:System.ArgumentException">流不支持写入操作,如压缩。(流对象上的 <see cref="P:System.IO.Stream.CanWrite" /> 属性是 false。)</exception>
  165. </member>
  166. <member name="M:System.IO.Compression.GZipStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionMode)">
  167. <summary>用指定的流和压缩模式初始化 <see cref="T:System.IO.Compression.GZipStream" /> 类的新实例。</summary>
  168. <param name="stream">压缩或解压缩后的数据被写入的流。</param>
  169. <param name="mode">指示是要压缩还是解压缩流的枚举值之一。</param>
  170. <exception cref="T:System.ArgumentNullException">
  171. <paramref name="stream" /> 为 null。</exception>
  172. <exception cref="T:System.ArgumentException">
  173. <paramref name="mode" /> 不是有效的 <see cref="T:System.IO.Compression.CompressionMode" /> 枚举值。- 或 -<see cref="T:System.IO.Compression.CompressionMode" /> 为 <see cref="F:System.IO.Compression.CompressionMode.Compress" /> 且 <see cref="P:System.IO.Stream.CanWrite" /> 为 false。- 或 -<see cref="T:System.IO.Compression.CompressionMode" /> 为 <see cref="F:System.IO.Compression.CompressionMode.Decompress" /> 且 <see cref="P:System.IO.Stream.CanRead" /> 为 false。</exception>
  174. </member>
  175. <member name="M:System.IO.Compression.GZipStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionMode,System.Boolean)">
  176. <summary>使用指定的流和压缩模式,初始化 <see cref="T:System.IO.Compression.GZipStream" /> 类的新实例,有选择性的打开流。</summary>
  177. <param name="stream">压缩或解压缩后的数据被写入的流。</param>
  178. <param name="mode">指示是要压缩还是解压缩流的枚举值之一。</param>
  179. <param name="leaveOpen">如果在释放 <see cref="T:System.IO.Compression.GZipStream" /> 对象之后打开流,则为 true;否则为 false。</param>
  180. <exception cref="T:System.ArgumentNullException">
  181. <paramref name="stream" /> 为 null。</exception>
  182. <exception cref="T:System.ArgumentException">
  183. <paramref name="mode" /> 不是有效的 <see cref="T:System.IO.Compression.CompressionMode" /> 值。- 或 -<see cref="T:System.IO.Compression.CompressionMode" /> 为 <see cref="F:System.IO.Compression.CompressionMode.Compress" /> 且 <see cref="P:System.IO.Stream.CanWrite" /> 为 false。- 或 -<see cref="T:System.IO.Compression.CompressionMode" /> 为 <see cref="F:System.IO.Compression.CompressionMode.Decompress" /> 且 <see cref="P:System.IO.Stream.CanRead" /> 为 false。</exception>
  184. </member>
  185. <member name="P:System.IO.Compression.GZipStream.BaseStream">
  186. <summary>获取对基础流的引用。</summary>
  187. <returns>表示基础流的流对象。</returns>
  188. <exception cref="T:System.ObjectDisposedException">基础流已关闭。</exception>
  189. <PermissionSet>
  190. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  191. </PermissionSet>
  192. </member>
  193. <member name="P:System.IO.Compression.GZipStream.CanRead">
  194. <summary>获取一个值,该值指示流是否支持在解压缩文件的过程中读取文件。</summary>
  195. <returns>如果 <see cref="T:System.IO.Compression.CompressionMode" /> 值为 Decompress, 而且基础流未关闭并支持读取,则为 true;否则为 false。</returns>
  196. <PermissionSet>
  197. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  198. </PermissionSet>
  199. </member>
  200. <member name="P:System.IO.Compression.GZipStream.CanSeek">
  201. <summary>获取一个值,该值指示流是否支持查找。</summary>
  202. <returns>在所有情况下均为 false。</returns>
  203. </member>
  204. <member name="P:System.IO.Compression.GZipStream.CanWrite">
  205. <summary>获取一个值,该值指示流是否支持写入。</summary>
  206. <returns>如果 <see cref="T:System.IO.Compression.CompressionMode" /> 值为 Compress 而且基础流未关闭并支持写入,则为 true;否则为 false。</returns>
  207. <PermissionSet>
  208. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  209. </PermissionSet>
  210. </member>
  211. <member name="M:System.IO.Compression.GZipStream.Dispose(System.Boolean)">
  212. <summary>释放由 <see cref="T:System.IO.Compression.GZipStream" /> 占用的非托管资源,还可以释放托管资源。</summary>
  213. <param name="disposing">若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 false。</param>
  214. </member>
  215. <member name="M:System.IO.Compression.GZipStream.Flush">
  216. <summary>此方法的当前实现没有任何功能。</summary>
  217. <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
  218. <PermissionSet>
  219. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  220. </PermissionSet>
  221. </member>
  222. <member name="P:System.IO.Compression.GZipStream.Length">
  223. <summary>此属性不受支持,并且总是引发 <see cref="T:System.NotSupportedException" />。</summary>
  224. <returns>一个长值。</returns>
  225. <exception cref="T:System.NotSupportedException">此流中不支持此属性。</exception>
  226. <PermissionSet>
  227. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  228. </PermissionSet>
  229. </member>
  230. <member name="P:System.IO.Compression.GZipStream.Position">
  231. <summary>此属性不受支持,并且总是引发 <see cref="T:System.NotSupportedException" />。</summary>
  232. <returns>一个长值。</returns>
  233. <exception cref="T:System.NotSupportedException">此流中不支持此属性。</exception>
  234. <PermissionSet>
  235. <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
  236. </PermissionSet>
  237. </member>
  238. <member name="M:System.IO.Compression.GZipStream.Read(System.Byte[],System.Int32,System.Int32)">
  239. <summary>将若干解压缩的字节读入指定的字节数组。</summary>
  240. <returns>解压缩到字节数组中的字节数。如果已到达流的末尾,则返回 0 或已读取的字节数。</returns>
  241. <param name="array">用于存储解压缩字节的数组。</param>
  242. <param name="offset">
  243. <paramref name="array" /> 中的字节偏移量,将在此处放置读取的字节。</param>
  244. <param name="count">最多要读取的解压缩字节数。</param>
  245. <exception cref="T:System.ArgumentNullException">
  246. <paramref name="array" /> 为 null。</exception>
  247. <exception cref="T:System.InvalidOperationException">创建对象时 <see cref="T:System.IO.Compression.CompressionMode" /> 值是 Compress。- 或 -基础流不支持读取。</exception>
  248. <exception cref="T:System.ArgumentOutOfRangeException">
  249. <paramref name="offset" /> 或 <paramref name="count" /> 小于零。- 或 -<paramref name="array" /> 长度减去索引起始点小于 <paramref name="count" />。</exception>
  250. <exception cref="T:System.IO.InvalidDataException">数据的格式无效。</exception>
  251. <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
  252. </member>
  253. <member name="M:System.IO.Compression.GZipStream.Seek(System.Int64,System.IO.SeekOrigin)">
  254. <summary>此属性不受支持,并且总是引发 <see cref="T:System.NotSupportedException" />。</summary>
  255. <returns>一个长值。</returns>
  256. <param name="offset">流中的位置。</param>
  257. <param name="origin">
  258. <see cref="T:System.IO.SeekOrigin" /> 值之一。</param>
  259. <exception cref="T:System.NotSupportedException">此流中不支持此属性。</exception>
  260. </member>
  261. <member name="M:System.IO.Compression.GZipStream.SetLength(System.Int64)">
  262. <summary>此属性不受支持,并且总是引发 <see cref="T:System.NotSupportedException" />。</summary>
  263. <param name="value">流的长度。</param>
  264. <exception cref="T:System.NotSupportedException">此流中不支持此属性。</exception>
  265. </member>
  266. <member name="M:System.IO.Compression.GZipStream.Write(System.Byte[],System.Int32,System.Int32)">
  267. <summary>从指定的字节数组中将压缩的字节写入基础流。</summary>
  268. <param name="array">包含要压缩的数据的缓冲区。</param>
  269. <param name="offset">
  270. <paramref name="array" /> 中的字节偏移量,将在此处读取字节。</param>
  271. <param name="count">最多写入的字节数。</param>
  272. <exception cref="T:System.ObjectDisposedException">由于流已关闭,因此无法执行写入操作。</exception>
  273. </member>
  274. <member name="T:System.IO.Compression.ZipArchive">
  275. <summary>表示 Zip 存档格式中的一个压缩文件包。</summary>
  276. </member>
  277. <member name="M:System.IO.Compression.ZipArchive.#ctor(System.IO.Stream)">
  278. <summary>从指定流初始化 <see cref="T:System.IO.Compression.ZipArchive" /> 类的新实例。</summary>
  279. <param name="stream">即包含待读取的存档的流。</param>
  280. <exception cref="T:System.ArgumentException">The stream is already closed or does not support reading.</exception>
  281. <exception cref="T:System.ArgumentNullException">
  282. <paramref name="stream" /> is null.</exception>
  283. <exception cref="T:System.IO.InvalidDataException">The contents of the stream are not in the zip archive format.</exception>
  284. </member>
  285. <member name="M:System.IO.Compression.ZipArchive.#ctor(System.IO.Stream,System.IO.Compression.ZipArchiveMode)">
  286. <summary>在指定的模式下,从指定的流初始化 <see cref="T:System.IO.Compression.ZipArchive" /> 类的新实例。</summary>
  287. <param name="stream">输入流或输出流。</param>
  288. <param name="mode">指示 zip 存档是否用于读取、创建或更新项的一个枚举值。</param>
  289. <exception cref="T:System.ArgumentException">The stream is already closed, or the capabilities of the stream do not match the mode.</exception>
  290. <exception cref="T:System.ArgumentNullException">
  291. <paramref name="stream" /> is null.</exception>
  292. <exception cref="T:System.ArgumentOutOfRangeException">
  293. <paramref name="mode" /> is an invalid value.</exception>
  294. <exception cref="T:System.IO.InvalidDataException">The contents of the stream could not be interpreted as a zip archive.-or-<paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> and an entry is missing from the archive or is corrupt and cannot be read.-or-<paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> and an entry is too large to fit into memory.</exception>
  295. </member>
  296. <member name="M:System.IO.Compression.ZipArchive.#ctor(System.IO.Stream,System.IO.Compression.ZipArchiveMode,System.Boolean)">
  297. <summary>对于指定的模式,初始化指定流上的 <see cref="T:System.IO.Compression.ZipArchive" /> 类的新实例,并有选择性地使流保持打开状态。</summary>
  298. <param name="stream">输入流或输出流。</param>
  299. <param name="mode">指示 zip 存档是否用于读取、创建或更新项的一个枚举值。</param>
  300. <param name="leaveOpen">如果在释放 <see cref="T:System.IO.Compression.ZipArchive" /> 对象之后打开流对象,则为 true;否则为 false。</param>
  301. <exception cref="T:System.ArgumentException">The stream is already closed, or the capabilities of the stream do not match the mode.</exception>
  302. <exception cref="T:System.ArgumentNullException">
  303. <paramref name="stream" /> is null.</exception>
  304. <exception cref="T:System.ArgumentOutOfRangeException">
  305. <paramref name="mode" /> is an invalid value.</exception>
  306. <exception cref="T:System.IO.InvalidDataException">The contents of the stream could not be interpreted as a zip archive.-or-<paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> and an entry is missing from the archive or is corrupt and cannot be read.-or-<paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> and an entry is too large to fit into memory.</exception>
  307. </member>
  308. <member name="M:System.IO.Compression.ZipArchive.#ctor(System.IO.Stream,System.IO.Compression.ZipArchiveMode,System.Boolean,System.Text.Encoding)">
  309. <summary>对于指定的模式,初始化指定流上的 <see cref="T:System.IO.Compression.ZipArchive" /> 类的新实例,使用项名的指定编码,并有择性地使流保持打开状态。</summary>
  310. <param name="stream">输入流或输出流。</param>
  311. <param name="mode">指示 zip 存档是否用于读取、创建或更新项的一个枚举值。</param>
  312. <param name="leaveOpen">如果在释放 <see cref="T:System.IO.Compression.ZipArchive" /> 对象之后打开流对象,则为 true;否则为 false。</param>
  313. <param name="entryNameEncoding">在存档中读取或写入项名时使用的编码。仅当需要针对具有不支持项名的 UTF-8 编码的 zip 归档工具和库的互操作性进行编码时,为此参数指定一个值。</param>
  314. <exception cref="T:System.ArgumentException">The stream is already closed, or the capabilities of the stream do not match the mode.</exception>
  315. <exception cref="T:System.ArgumentNullException">
  316. <paramref name="stream" /> is null.</exception>
  317. <exception cref="T:System.ArgumentOutOfRangeException">
  318. <paramref name="mode" /> is an invalid value.</exception>
  319. <exception cref="T:System.IO.InvalidDataException">The contents of the stream could not be interpreted as a zip archive.-or-<paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> and an entry is missing from the archive or is corrupt and cannot be read.-or-<paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> and an entry is too large to fit into memory.</exception>
  320. </member>
  321. <member name="M:System.IO.Compression.ZipArchive.CreateEntry(System.String)">
  322. <summary>创建在 zip 存档中有指定路径和项名的空项。</summary>
  323. <returns>在 zip 存档中的空项。</returns>
  324. <param name="entryName">相对于存档的根的路径指定了要创建项的名称。</param>
  325. <exception cref="T:System.ArgumentException">
  326. <paramref name="entryName" /> is <see cref="F:System.String.Empty" />.</exception>
  327. <exception cref="T:System.ArgumentNullException">
  328. <paramref name="entryName" /> is null.</exception>
  329. <exception cref="T:System.NotSupportedException">The zip archive does not support writing.</exception>
  330. <exception cref="T:System.ObjectDisposedException">The zip archive has been disposed.</exception>
  331. </member>
  332. <member name="M:System.IO.Compression.ZipArchive.CreateEntry(System.String,System.IO.Compression.CompressionLevel)">
  333. <summary>创建在 zip 存档中有指定项名和压缩级别的空项。</summary>
  334. <returns>在 zip 存档中的空项。</returns>
  335. <param name="entryName">相对于存档的根的路径指定了要创建项的名称。</param>
  336. <param name="compressionLevel">指示创建项时是否强调速度或压缩有效性的枚举值之一。</param>
  337. <exception cref="T:System.ArgumentException">
  338. <paramref name="entryName" /> is <see cref="F:System.String.Empty" />.</exception>
  339. <exception cref="T:System.ArgumentNullException">
  340. <paramref name="entryName" /> is null.</exception>
  341. <exception cref="T:System.NotSupportedException">The zip archive does not support writing.</exception>
  342. <exception cref="T:System.ObjectDisposedException">The zip archive has been disposed.</exception>
  343. </member>
  344. <member name="M:System.IO.Compression.ZipArchive.Dispose">
  345. <summary>释放 <see cref="T:System.IO.Compression.ZipArchive" /> 类的当前实例使用的资源。</summary>
  346. </member>
  347. <member name="M:System.IO.Compression.ZipArchive.Dispose(System.Boolean)">
  348. <summary>由 <see cref="M:System.IO.Compression.ZipArchive.Dispose" /> 和 <see cref="M:System.Object.Finalize" /> 方法调用,以释放 <see cref="T:System.IO.Compression.ZipArchive" /> 类的当前实例使用的未托管资源,并有选择性地完成编写存档以及释放托管资源。</summary>
  349. <param name="disposing">true 则完成编写存档并释放未托管和托管资源;false 则仅释放未托管资源。</param>
  350. </member>
  351. <member name="P:System.IO.Compression.ZipArchive.Entries">
  352. <summary>获取 zip 存档中当前存在的项的集合。</summary>
  353. <returns>在 zip 存档中当前存在的项的集合。</returns>
  354. <exception cref="T:System.NotSupportedException">The zip archive does not support reading.</exception>
  355. <exception cref="T:System.ObjectDisposedException">The zip archive has been disposed.</exception>
  356. <exception cref="T:System.IO.InvalidDataException">The zip archive is corrupt, and its entries cannot be retrieved.</exception>
  357. </member>
  358. <member name="M:System.IO.Compression.ZipArchive.GetEntry(System.String)">
  359. <summary>在 zip 存档中检索指定项的包装。</summary>
  360. <returns>存档中指定项的包装器;如果存档中不存在此项目则为 null。</returns>
  361. <param name="entryName">识别要检索的项、相对于存档的根的路径。</param>
  362. <exception cref="T:System.ArgumentException">
  363. <paramref name="entryName" /> is <see cref="F:System.String.Empty" />.</exception>
  364. <exception cref="T:System.ArgumentNullException">
  365. <paramref name="entryName" /> is null.</exception>
  366. <exception cref="T:System.NotSupportedException">The zip archive does not support reading.</exception>
  367. <exception cref="T:System.ObjectDisposedException">The zip archive has been disposed.</exception>
  368. <exception cref="T:System.IO.InvalidDataException">The zip archive is corrupt, and its entries cannot be retrieved.</exception>
  369. </member>
  370. <member name="P:System.IO.Compression.ZipArchive.Mode">
  371. <summary>获取描述 zip 存档可在项上执行的操作类型的一个值。</summary>
  372. <returns>描述 zip 存档可在项上执行的操作类型(读取、创建或更新)的一个枚举值。</returns>
  373. </member>
  374. <member name="T:System.IO.Compression.ZipArchiveEntry">
  375. <summary>表示 zip 档案中的压缩文件。</summary>
  376. </member>
  377. <member name="P:System.IO.Compression.ZipArchiveEntry.Archive">
  378. <summary>获取该项所属的 zip 存档。</summary>
  379. <returns>项所属的 zip 存档,或如果已删除项,则为 null。</returns>
  380. </member>
  381. <member name="P:System.IO.Compression.ZipArchiveEntry.CompressedLength">
  382. <summary>获取在 zip 存档中的项的压缩大小。</summary>
  383. <returns>在 zip 存档中的项的压缩大小。</returns>
  384. <exception cref="T:System.InvalidOperationException">The value of the property is not available because the entry has been modified.</exception>
  385. </member>
  386. <member name="M:System.IO.Compression.ZipArchiveEntry.Delete">
  387. <summary>删除 zip 存档中的项。</summary>
  388. <exception cref="T:System.IO.IOException">The entry is already open for reading or writing.</exception>
  389. <exception cref="T:System.NotSupportedException">The zip archive for this entry was opened in a mode other than <see cref="F:System.IO.Compression.ZipArchiveMode.Update" />. </exception>
  390. <exception cref="T:System.ObjectDisposedException">The zip archive for this entry has been disposed.</exception>
  391. </member>
  392. <member name="P:System.IO.Compression.ZipArchiveEntry.FullName">
  393. <summary>获取 zip 存档中的项的相对路径。</summary>
  394. <returns>在 zip 存档中的项的相对路径。</returns>
  395. </member>
  396. <member name="P:System.IO.Compression.ZipArchiveEntry.LastWriteTime">
  397. <summary>获取或设置最近一次更改 zip 存档中的项的时间。</summary>
  398. <returns>最近一次更改 zip 存档中的项的时间。</returns>
  399. <exception cref="T:System.NotSupportedException">The attempt to set this property failed, because the zip archive for the entry is in <see cref="F:System.IO.Compression.ZipArchiveMode.Read" /> mode.</exception>
  400. <exception cref="T:System.IO.IOException">The archive mode is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Create" />.- or -The archive mode is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Update" /> and the entry has been opened.</exception>
  401. <exception cref="T:System.ArgumentOutOfRangeException">An attempt was made to set this property to a value that is either earlier than 1980 January 1 0:00:00 (midnight) or later than 2107 December 31 23:59:58 (one second before midnight).</exception>
  402. </member>
  403. <member name="P:System.IO.Compression.ZipArchiveEntry.Length">
  404. <summary>获取 zip 存档中的项的未压缩大小。</summary>
  405. <returns>在 zip 存档中的项的未压缩大小。</returns>
  406. <exception cref="T:System.InvalidOperationException">The value of the property is not available because the entry has been modified.</exception>
  407. </member>
  408. <member name="P:System.IO.Compression.ZipArchiveEntry.Name">
  409. <summary>获取在 zip 存档中的项的文件名。</summary>
  410. <returns>在 zip 存档中的项的文件名。</returns>
  411. </member>
  412. <member name="M:System.IO.Compression.ZipArchiveEntry.Open">
  413. <summary>打开 zip 存档中的项。</summary>
  414. <returns>表示项的内容的流。</returns>
  415. <exception cref="T:System.IO.IOException">The entry is already currently open for writing.-or-The entry has been deleted from the archive.-or-The archive for this entry was opened with the <see cref="F:System.IO.Compression.ZipArchiveMode.Create" /> mode, and this entry has already been written to. </exception>
  416. <exception cref="T:System.IO.InvalidDataException">The entry is either missing from the archive or is corrupt and cannot be read. -or-The entry has been compressed by using a compression method that is not supported.</exception>
  417. <exception cref="T:System.ObjectDisposedException">The zip archive for this entry has been disposed.</exception>
  418. </member>
  419. <member name="M:System.IO.Compression.ZipArchiveEntry.ToString">
  420. <summary>检索 zip 存档中项的相对路径。</summary>
  421. <returns>项的相对路径,即存储在 <see cref="P:System.IO.Compression.ZipArchiveEntry.FullName" /> 属性中的值。</returns>
  422. </member>
  423. <member name="T:System.IO.Compression.ZipArchiveMode">
  424. <summary>指定与 zip 存档项互交的值。</summary>
  425. </member>
  426. <member name="F:System.IO.Compression.ZipArchiveMode.Create">
  427. <summary>只允许创建新存档项。</summary>
  428. </member>
  429. <member name="F:System.IO.Compression.ZipArchiveMode.Read">
  430. <summary>只允许读取存档项。</summary>
  431. </member>
  432. <member name="F:System.IO.Compression.ZipArchiveMode.Update">
  433. <summary>存档项允许读取和写入操作。</summary>
  434. </member>
  435. </members>
  436. </doc>