|
43 | 43 |
|
44 | 44 | The methods for manipulating zip archives and their files are spread across three classes: <xref:System.IO.Compression.ZipFile>, <xref:System.IO.Compression.ZipArchive> and <xref:System.IO.Compression.ZipArchiveEntry>.
|
45 | 45 |
|
46 |
| -|To…|Use…| |
| 46 | +|To...|Use...| |
47 | 47 | |---------|----------|
|
48 | 48 | |Create a zip archive from a directory|<xref:System.IO.Compression.ZipFile.CreateFromDirectory%2A?displayProperty=nameWithType>|
|
49 | 49 | |Extract the contents of a zip archive to a directory|<xref:System.IO.Compression.ZipFile.ExtractToDirectory%2A?displayProperty=nameWithType>|
|
|
159 | 159 |
|
160 | 160 | -or-
|
161 | 161 |
|
162 |
| - A file in the specified directory could not be opened.</exception> |
| 162 | + A file in the specified directory could not be opened. |
| 163 | + |
| 164 | +-or- |
| 165 | + |
| 166 | +An I/O error occurred while opening a file to be archived.</exception> |
163 | 167 | <exception cref="T:System.UnauthorizedAccessException">
|
164 | 168 | <paramref name="destinationArchiveFileName" /> specifies a directory.
|
165 | 169 |
|
|
249 | 253 |
|
250 | 254 | -or-
|
251 | 255 |
|
252 |
| - A file in the specified directory could not be opened.</exception> |
| 256 | + A file in the specified directory could not be opened. |
| 257 | + |
| 258 | +-or- |
| 259 | + |
| 260 | +An I/O error occurred while opening a file to be archived.</exception> |
253 | 261 | <exception cref="T:System.UnauthorizedAccessException">
|
254 | 262 | <paramref name="destinationArchiveFileName" /> specifies a directory.
|
255 | 263 |
|
|
346 | 354 |
|
347 | 355 | -or-
|
348 | 356 |
|
349 |
| - A file in the specified directory could not be opened.</exception> |
| 357 | + A file in the specified directory could not be opened. |
| 358 | + |
| 359 | +-or- |
| 360 | + |
| 361 | +An I/O error occurred while opening a file to be archived.</exception> |
350 | 362 | <exception cref="T:System.UnauthorizedAccessException">
|
351 | 363 | <paramref name="destinationArchiveFileName" /> specifies a directory.
|
352 | 364 |
|
@@ -833,7 +845,11 @@ An archive entry has been compressed using a compression method that is not supp
|
833 | 845 |
|
834 | 846 | -or-
|
835 | 847 |
|
836 |
| - <paramref name="mode" /> is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Create" />, but the file specified in <paramref name="archiveFileName" /> already exists.</exception> |
| 848 | + <paramref name="mode" /> is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Create" />, but the file specified in <paramref name="archiveFileName" /> already exists. |
| 849 | + |
| 850 | +-or- |
| 851 | + |
| 852 | +An unspecified I/O error occurred while opening the file.</exception> |
837 | 853 | <exception cref="T:System.UnauthorizedAccessException">
|
838 | 854 | <paramref name="archiveFileName" /> specifies a directory.
|
839 | 855 |
|
@@ -948,7 +964,11 @@ An archive entry has been compressed using a compression method that is not supp
|
948 | 964 |
|
949 | 965 | -or-
|
950 | 966 |
|
951 |
| - <paramref name="mode" /> is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Create" />, but the file specified in <paramref name="archiveFileName" /> already exists.</exception> |
| 967 | + <paramref name="mode" /> is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Create" />, but the file specified in <paramref name="archiveFileName" /> already exists. |
| 968 | + |
| 969 | +-or- |
| 970 | + |
| 971 | +An unspecified I/O error occurred while opening the file.</exception> |
952 | 972 | <exception cref="T:System.UnauthorizedAccessException">
|
953 | 973 | <paramref name="archiveFileName" /> specifies a directory.
|
954 | 974 |
|
@@ -1034,7 +1054,11 @@ An archive entry has been compressed using a compression method that is not supp
|
1034 | 1054 | <exception cref="T:System.IO.DirectoryNotFoundException">
|
1035 | 1055 | <paramref name="archiveFileName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception>
|
1036 | 1056 | <exception cref="T:System.IO.IOException">
|
1037 |
| - <paramref name="archiveFileName" /> could not be opened.</exception> |
| 1057 | + <paramref name="archiveFileName" /> could not be opened. |
| 1058 | + |
| 1059 | +-or- |
| 1060 | + |
| 1061 | +An unspecified I/O error occurred while opening the file.</exception> |
1038 | 1062 | <exception cref="T:System.UnauthorizedAccessException">
|
1039 | 1063 | <paramref name="archiveFileName" /> specifies a directory.
|
1040 | 1064 |
|
|
0 commit comments