1<?xml version="1.0" encoding="utf-8"?> 2<doc> 3 <assembly> 4 <name>System.IO.Compression.FileSystem</name> 5 </assembly> 6 <members> 7 <member name="M:System.IO.Compression.ZipFile.CreateFromDirectory(System.String,System.String)"> 8 <summary>Creates a zip archive that contains the files and directories from the specified directory.</summary> 9 <param name="sourceDirectoryName">The path to the directory to be archived, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 10 <param name="destinationArchiveFileName">The path of the archive to be created, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 11 <exception cref="T:System.ArgumentException"> 12 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.</exception> 13 <exception cref="T:System.ArgumentNullException"> 14 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> is <see langword="null" />.</exception> 15 <exception cref="T:System.IO.PathTooLongException">In <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" />, the specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 16 <exception cref="T:System.IO.DirectoryNotFoundException"> 17 <paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 18 <exception cref="T:System.IO.IOException"> 19 <paramref name="destinationArchiveFileName" /> already exists.-or-A file in the specified directory could not be opened.</exception> 20 <exception cref="T:System.UnauthorizedAccessException"> 21 <paramref name="destinationArchiveFileName" /> specifies a directory.-or-The caller does not have the required permission to access the directory specified in <paramref name="sourceDirectoryName" /> or the file specified in <paramref name="destinationArchiveFileName" />.</exception> 22 <exception cref="T:System.NotSupportedException"> 23 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> contains an invalid format.-or-The zip archive does not support writing.</exception> 24 </member> 25 <member name="M:System.IO.Compression.ZipFile.CreateFromDirectory(System.String,System.String,System.IO.Compression.CompressionLevel,System.Boolean)"> 26 <summary>Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level, and optionally includes the base directory.</summary> 27 <param name="sourceDirectoryName">The path to the directory to be archived, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 28 <param name="destinationArchiveFileName">The path of the archive to be created, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 29 <param name="compressionLevel">One of the enumeration values that indicates whether to emphasize speed or compression effectiveness when creating the entry.</param> 30 <param name="includeBaseDirectory"> 31 <see langword="true" /> to include the directory name from <paramref name="sourceDirectoryName" /> at the root of the archive; <see langword="false" /> to include only the contents of the directory.</param> 32 <exception cref="T:System.ArgumentException"> 33 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.</exception> 34 <exception cref="T:System.ArgumentNullException"> 35 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> is <see langword="null" />.</exception> 36 <exception cref="T:System.IO.PathTooLongException">In <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" />, the specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 37 <exception cref="T:System.IO.DirectoryNotFoundException"> 38 <paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 39 <exception cref="T:System.IO.IOException"> 40 <paramref name="destinationArchiveFileName" /> already exists.-or-A file in the specified directory could not be opened.</exception> 41 <exception cref="T:System.UnauthorizedAccessException"> 42 <paramref name="destinationArchiveFileName" /> specifies a directory.-or-The caller does not have the required permission to access the directory specified in <paramref name="sourceDirectoryName" /> or the file specified in <paramref name="destinationArchiveFileName" />.</exception> 43 <exception cref="T:System.NotSupportedException"> 44 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> contains an invalid format.-or-The zip archive does not support writing.</exception> 45 </member> 46 <member name="M:System.IO.Compression.ZipFile.CreateFromDirectory(System.String,System.String,System.IO.Compression.CompressionLevel,System.Boolean,System.Text.Encoding)"> 47 <summary>Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level and character encoding for entry names, and optionally includes the base directory.</summary> 48 <param name="sourceDirectoryName">The path to the directory to be archived, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 49 <param name="destinationArchiveFileName">The path of the archive to be created, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 50 <param name="compressionLevel">One of the enumeration values that indicates whether to emphasize speed or compression effectiveness when creating the entry.</param> 51 <param name="includeBaseDirectory"> 52 <see langword="true" /> to include the directory name from <paramref name="sourceDirectoryName" /> at the root of the archive; <see langword="false" /> to include only the contents of the directory.</param> 53 <param name="entryNameEncoding">The encoding to use when reading or writing entry names in this archive. Specify a value for this parameter only when an encoding is required for interoperability with zip archive tools and libraries that do not support UTF-8 encoding for entry names.</param> 54 <exception cref="T:System.ArgumentException"> 55 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.-or- 56 <paramref name="entryNameEncoding" /> is set to a Unicode encoding other than UTF-8.</exception> 57 <exception cref="T:System.ArgumentNullException"> 58 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> is <see langword="null" />.</exception> 59 <exception cref="T:System.IO.PathTooLongException">In <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" />, the specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 60 <exception cref="T:System.IO.DirectoryNotFoundException"> 61 <paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 62 <exception cref="T:System.IO.IOException"> 63 <paramref name="destinationArchiveFileName" /> already exists.-or-A file in the specified directory could not be opened.</exception> 64 <exception cref="T:System.UnauthorizedAccessException"> 65 <paramref name="destinationArchiveFileName" /> specifies a directory.-or-The caller does not have the required permission to access the directory specified in <paramref name="sourceDirectoryName" /> or the file specified in <paramref name="destinationArchiveFileName" />.</exception> 66 <exception cref="T:System.NotSupportedException"> 67 <paramref name="sourceDirectoryName" /> or <paramref name="destinationArchiveFileName" /> contains an invalid format.-or-The zip archive does not support writing.</exception> 68 </member> 69 <member name="M:System.IO.Compression.ZipFile.ExtractToDirectory(System.String,System.String)"> 70 <summary>Extracts all the files in the specified zip archive to a directory on the file system.</summary> 71 <param name="sourceArchiveFileName">The path to the archive that is to be extracted.</param> 72 <param name="destinationDirectoryName">The path to the directory in which to place the extracted files, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 73 <exception cref="T:System.ArgumentException"> 74 <paramref name="destinationDirectoryName" /> or <paramref name="sourceArchiveFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.</exception> 75 <exception cref="T:System.ArgumentNullException"> 76 <paramref name="destinationDirectoryName" /> or <paramref name="sourceArchiveFileName" /> is <see langword="null" />.</exception> 77 <exception cref="T:System.IO.PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> or <paramref name="sourceArchiveFileName" /> exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 78 <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 79 <exception cref="T:System.IO.IOException">The directory specified by <paramref name="destinationDirectoryName" /> already exists.-or-The name of an entry in the archive is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.-or-Extracting an archive entry would create a file that is outside the directory specified by <paramref name="destinationDirectoryName" />. (For example, this might happen if the entry name contains parent directory accessors.) -or-An archive entry to extract has the same name as an entry that has already been extracted from the same archive.</exception> 80 <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 81 <exception cref="T:System.NotSupportedException"> 82 <paramref name="destinationDirectoryName" /> or <paramref name="sourceArchiveFileName" /> contains an invalid format.</exception> 83 <exception cref="T:System.IO.FileNotFoundException"> 84 <paramref name="sourceArchiveFileName" /> was not found.</exception> 85 <exception cref="T:System.IO.InvalidDataException">The archive specified by <paramref name="sourceArchiveFileName" /> is not a valid zip archive.-or-An archive entry was not found or was corrupt.-or-An archive entry was compressed by using a compression method that is not supported.</exception> 86 </member> 87 <member name="M:System.IO.Compression.ZipFile.ExtractToDirectory(System.String,System.String,System.Text.Encoding)"> 88 <summary>Extracts all the files in the specified zip archive to a directory on the file system and uses the specified character encoding for entry names.</summary> 89 <param name="sourceArchiveFileName">The path to the archive that is to be extracted.</param> 90 <param name="destinationDirectoryName">The path to the directory in which to place the extracted files, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 91 <param name="entryNameEncoding">The encoding to use when reading or writing entry names in this archive. Specify a value for this parameter only when an encoding is required for interoperability with zip archive tools and libraries that do not support UTF-8 encoding for entry names.</param> 92 <exception cref="T:System.ArgumentException"> 93 <paramref name="destinationDirectoryName" /> or <paramref name="sourceArchiveFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.-or- 94 <paramref name="entryNameEncoding" /> is set to a Unicode encoding other than UTF-8.</exception> 95 <exception cref="T:System.ArgumentNullException"> 96 <paramref name="destinationDirectoryName" /> or <paramref name="sourceArchiveFileName" /> is <see langword="null" />.</exception> 97 <exception cref="T:System.IO.PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> or <paramref name="sourceArchiveFileName" /> exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 98 <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 99 <exception cref="T:System.IO.IOException">The directory specified by <paramref name="destinationDirectoryName" /> already exists.-or-The name of an entry in the archive is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.-or-Extracting an archive entry would create a file that is outside the directory specified by <paramref name="destinationDirectoryName" />. (For example, this might happen if the entry name contains parent directory accessors.) -or-An archive entry to extract has the same name as an entry that has already been extracted from the same archive.</exception> 100 <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 101 <exception cref="T:System.NotSupportedException"> 102 <paramref name="destinationDirectoryName" /> or <paramref name="sourceArchiveFileName" /> contains an invalid format.</exception> 103 <exception cref="T:System.IO.FileNotFoundException"> 104 <paramref name="sourceArchiveFileName" /> was not found.</exception> 105 <exception cref="T:System.IO.InvalidDataException">The archive specified by <paramref name="sourceArchiveFileName" /> is not a valid zip archive.-or-An archive entry was not found or was corrupt.-or-An archive entry was compressed by using a compression method that is not supported.</exception> 106 </member> 107 <member name="M:System.IO.Compression.ZipFile.Open(System.String,System.IO.Compression.ZipArchiveMode)"> 108 <summary>Opens a zip archive at the specified path and in the specified mode.</summary> 109 <param name="archiveFileName">The path to the archive to open, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 110 <param name="mode">One of the enumeration values that specifies the actions which are allowed on the entries in the opened archive.</param> 111 <returns>The opened zip archive.</returns> 112 <exception cref="T:System.ArgumentException"> 113 <paramref name="archiveFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.</exception> 114 <exception cref="T:System.ArgumentNullException"> 115 <paramref name="archiveFileName" /> is <see langword="null" />.</exception> 116 <exception cref="T:System.IO.PathTooLongException">In <paramref name="archiveFileName" />, the specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 117 <exception cref="T:System.IO.DirectoryNotFoundException"> 118 <paramref name="archiveFileName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 119 <exception cref="T:System.IO.IOException"> 120 <paramref name="archiveFileName" /> could not be opened.-or- 121 <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> 122 <exception cref="T:System.UnauthorizedAccessException"> 123 <paramref name="archiveFileName" /> specifies a directory.-or-The caller does not have the required permission to access the file specified in <paramref name="archiveFileName" />.</exception> 124 <exception cref="T:System.ArgumentOutOfRangeException"> 125 <paramref name="mode" /> specifies an invalid value.</exception> 126 <exception cref="T:System.IO.FileNotFoundException"> 127 <paramref name="mode" /> is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Read" />, but the file specified in <paramref name="archiveFileName" /> is not found.</exception> 128 <exception cref="T:System.NotSupportedException"> 129 <paramref name="archiveFileName" /> contains an invalid format.</exception> 130 <exception cref="T:System.IO.InvalidDataException"> 131 <paramref name="archiveFileName" /> could not be interpreted as a zip archive.-or- 132 <paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" />, but an entry is missing or corrupt and cannot be read.-or- 133 <paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" />, but an entry is too large to fit into memory.</exception> 134 </member> 135 <member name="M:System.IO.Compression.ZipFile.Open(System.String,System.IO.Compression.ZipArchiveMode,System.Text.Encoding)"> 136 <summary>Opens a zip archive at the specified path, in the specified mode, and by using the specified character encoding for entry names.</summary> 137 <param name="archiveFileName">The path to the archive to open, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 138 <param name="mode">One of the enumeration values that specifies the actions that are allowed on the entries in the opened archive.</param> 139 <param name="entryNameEncoding">The encoding to use when reading or writing entry names in this archive. Specify a value for this parameter only when an encoding is required for interoperability with zip archive tools and libraries that do not support UTF-8 encoding for entry names.</param> 140 <returns>The opened zip archive.</returns> 141 <exception cref="T:System.ArgumentException"> 142 <paramref name="archiveFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.-or- 143 <paramref name="entryNameEncoding" /> is set to a Unicode encoding other than UTF-8.</exception> 144 <exception cref="T:System.ArgumentNullException"> 145 <paramref name="archiveFileName" /> is <see langword="null" />.</exception> 146 <exception cref="T:System.IO.PathTooLongException">In <paramref name="archiveFileName" />, the specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 147 <exception cref="T:System.IO.DirectoryNotFoundException"> 148 <paramref name="archiveFileName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 149 <exception cref="T:System.IO.IOException"> 150 <paramref name="archiveFileName" /> could not be opened.-or- 151 <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> 152 <exception cref="T:System.UnauthorizedAccessException"> 153 <paramref name="archiveFileName" /> specifies a directory.-or-The caller does not have the required permission to access the file specified in <paramref name="archiveFileName" />.</exception> 154 <exception cref="T:System.ArgumentOutOfRangeException"> 155 <paramref name="mode" /> specifies an invalid value.</exception> 156 <exception cref="T:System.IO.FileNotFoundException"> 157 <paramref name="mode" /> is set to <see cref="F:System.IO.Compression.ZipArchiveMode.Read" />, but the file specified in <paramref name="archiveFileName" /> is not found.</exception> 158 <exception cref="T:System.NotSupportedException"> 159 <paramref name="archiveFileName" /> contains an invalid format.</exception> 160 <exception cref="T:System.IO.InvalidDataException"> 161 <paramref name="archiveFileName" /> could not be interpreted as a zip archive.-or- 162 <paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" />, but an entry is missing or corrupt and cannot be read.-or- 163 <paramref name="mode" /> is <see cref="F:System.IO.Compression.ZipArchiveMode.Update" />, but an entry is too large to fit into memory.</exception> 164 </member> 165 <member name="M:System.IO.Compression.ZipFile.OpenRead(System.String)"> 166 <summary>Opens a zip archive for reading at the specified path.</summary> 167 <param name="archiveFileName">The path to the archive to open, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.</param> 168 <returns>The opened zip archive.</returns> 169 <exception cref="T:System.ArgumentException"> 170 <paramref name="archiveFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.</exception> 171 <exception cref="T:System.ArgumentNullException"> 172 <paramref name="archiveFileName" /> is <see langword="null" />.</exception> 173 <exception cref="T:System.IO.PathTooLongException">In <paramref name="archiveFileName" />, the specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 174 <exception cref="T:System.IO.DirectoryNotFoundException"> 175 <paramref name="archiveFileName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 176 <exception cref="T:System.IO.IOException"> 177 <paramref name="archiveFileName" /> could not be opened.</exception> 178 <exception cref="T:System.UnauthorizedAccessException"> 179 <paramref name="archiveFileName" /> specifies a directory.-or-The caller does not have the required permission to access the file specified in <paramref name="archiveFileName" />.</exception> 180 <exception cref="T:System.IO.FileNotFoundException">The file specified in <paramref name="archiveFileName" /> is not found.</exception> 181 <exception cref="T:System.NotSupportedException"> 182 <paramref name="archiveFileName" /> contains an invalid format.</exception> 183 <exception cref="T:System.IO.InvalidDataException"> 184 <paramref name="archiveFileName" /> could not be interpreted as a zip archive.</exception> 185 </member> 186 <member name="M:System.IO.Compression.ZipFileExtensions.CreateEntryFromFile(System.IO.Compression.ZipArchive,System.String,System.String)"> 187 <summary>Archives a file by compressing it and adding it to the zip archive.</summary> 188 <param name="destination">The zip archive to add the file to.</param> 189 <param name="sourceFileName">The path to the file to be archived. You can specify either a relative or an absolute path. A relative path is interpreted as relative to the current working directory.</param> 190 <param name="entryName">The name of the entry to create in the zip archive.</param> 191 <returns>A wrapper for the new entry in the zip archive.</returns> 192 <exception cref="T:System.ArgumentException"> 193 <paramref name="sourceFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.-or- 194 <paramref name="entryName" /> is <see cref="F:System.String.Empty" />.</exception> 195 <exception cref="T:System.ArgumentNullException"> 196 <paramref name="sourceFileName" /> or <paramref name="entryName" /> is <see langword="null" />.</exception> 197 <exception cref="T:System.IO.PathTooLongException">In <paramref name="sourceFileName" />, the specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 198 <exception cref="T:System.IO.DirectoryNotFoundException"> 199 <paramref name="sourceFileName" /> is invalid (for example, it is on an unmapped drive).</exception> 200 <exception cref="T:System.IO.IOException">The file specified by <paramref name="sourceFileName" /> cannot be opened.</exception> 201 <exception cref="T:System.UnauthorizedAccessException"> 202 <paramref name="sourceFileName" /> specifies a directory.-or-The caller does not have the required permission to access the file specified by <paramref name="sourceFileName" />.</exception> 203 <exception cref="T:System.IO.FileNotFoundException">The file specified by <paramref name="sourceFileName" /> is not found.</exception> 204 <exception cref="T:System.NotSupportedException">The <paramref name="sourceFileName" /> parameter is in an invalid format.-or-The zip archive does not support writing.</exception> 205 <exception cref="T:System.ObjectDisposedException">The zip archive has been disposed.</exception> 206 </member> 207 <member name="M:System.IO.Compression.ZipFileExtensions.CreateEntryFromFile(System.IO.Compression.ZipArchive,System.String,System.String,System.IO.Compression.CompressionLevel)"> 208 <summary>Archives a file by compressing it using the specified compression level and adding it to the zip archive.</summary> 209 <param name="destination">The zip archive to add the file to.</param> 210 <param name="sourceFileName">The path to the file to be archived. You can specify either a relative or an absolute path. A relative path is interpreted as relative to the current working directory.</param> 211 <param name="entryName">The name of the entry to create in the zip archive.</param> 212 <param name="compressionLevel">One of the enumeration values that indicates whether to emphasize speed or compression effectiveness when creating the entry.</param> 213 <returns>A wrapper for the new entry in the zip archive.</returns> 214 <exception cref="T:System.ArgumentException"> 215 <paramref name="sourceFileName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.-or- 216 <paramref name="entryName" /> is <see cref="F:System.String.Empty" />.</exception> 217 <exception cref="T:System.ArgumentNullException"> 218 <paramref name="sourceFileName" /> or <paramref name="entryName" /> is <see langword="null" />.</exception> 219 <exception cref="T:System.IO.DirectoryNotFoundException"> 220 <paramref name="sourceFileName" /> is invalid (for example, it is on an unmapped drive).</exception> 221 <exception cref="T:System.IO.PathTooLongException">In <paramref name="sourceFileName" />, the specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 222 <exception cref="T:System.IO.IOException">The file specified by <paramref name="sourceFileName" /> cannot be opened.</exception> 223 <exception cref="T:System.UnauthorizedAccessException"> 224 <paramref name="sourceFileName" /> specifies a directory.-or-The caller does not have the required permission to access the file specified by <paramref name="sourceFileName" />.</exception> 225 <exception cref="T:System.IO.FileNotFoundException">The file specified by <paramref name="sourceFileName" /> is not found.</exception> 226 <exception cref="T:System.NotSupportedException">The <paramref name="sourceFileName" /> parameter is in an invalid format.-or-The zip archive does not support writing.</exception> 227 <exception cref="T:System.ObjectDisposedException">The zip archive has been disposed.</exception> 228 </member> 229 <member name="M:System.IO.Compression.ZipFileExtensions.ExtractToDirectory(System.IO.Compression.ZipArchive,System.String)"> 230 <summary>Extracts all the files in the zip archive to a directory on the file system.</summary> 231 <param name="source">The zip archive to extract files from.</param> 232 <param name="destinationDirectoryName">The path to the directory to place the extracted files in. You can specify either a relative or an absolute path. A relative path is interpreted as relative to the current working directory.</param> 233 <exception cref="T:System.ArgumentException"> 234 <paramref name="destinationDirectoryName" /> is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.</exception> 235 <exception cref="T:System.ArgumentNullException"> 236 <paramref name="destinationDirectoryName" /> is <see langword="null" />.</exception> 237 <exception cref="T:System.IO.PathTooLongException">The specified path exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters.</exception> 238 <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 239 <exception cref="T:System.IO.IOException">The directory specified by <paramref name="destinationDirectoryName" /> already exists.-or-The name of an entry in the archive is <see cref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.-or-Extracting an entry from the archive would create a file that is outside the directory specified by <paramref name="destinationDirectoryName" />. (For example, this might happen if the entry name contains parent directory accessors.) -or-Two or more entries in the archive have the same name.</exception> 240 <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission to write to the destination directory.</exception> 241 <exception cref="T:System.NotSupportedException"> 242 <paramref name="destinationDirectoryName" /> contains an invalid format.</exception> 243 <exception cref="T:System.IO.InvalidDataException">An archive entry cannot be found or is corrupt.-or-An archive entry was compressed by using a compression method that is not supported.</exception> 244 </member> 245 <member name="M:System.IO.Compression.ZipFileExtensions.ExtractToFile(System.IO.Compression.ZipArchiveEntry,System.String)"> 246 <summary>Extracts an entry in the zip archive to a file.</summary> 247 <param name="source">The zip archive entry to extract a file from.</param> 248 <param name="destinationFileName">The path of the file to create from the contents of the entry. You can specify either a relative or an absolute path. A relative path is interpreted as relative to the current working directory.</param> 249 <exception cref="T:System.ArgumentException"> 250 <paramref name="destinationFileName" /> is a zero-length string, contains only white space, or contains one or more invalid characters as defined by <see cref="F:System.IO.Path.InvalidPathChars" />.-or- 251 <paramref name="destinationFileName" /> specifies a directory.</exception> 252 <exception cref="T:System.ArgumentNullException"> 253 <paramref name="destinationFileName" /> is <see langword="null" />. </exception> 254 <exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters. </exception> 255 <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive). </exception> 256 <exception cref="T:System.IO.IOException"> 257 <paramref name="destinationFileName" /> already exists.-or- An I/O error occurred.-or-The entry is currently open for writing.-or-The entry has been deleted from the archive.</exception> 258 <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission to create the new file.</exception> 259 <exception cref="T:System.IO.InvalidDataException">The entry is 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> 260 <exception cref="T:System.ObjectDisposedException">The zip archive that this entry belongs to has been disposed.</exception> 261 <exception cref="T:System.NotSupportedException"> 262 <paramref name="destinationFileName" /> is in an invalid format. -or-The zip archive for this entry was opened in <see cref="F:System.IO.Compression.ZipArchiveMode.Create" /> mode, which does not permit the retrieval of entries.</exception> 263 </member> 264 <member name="M:System.IO.Compression.ZipFileExtensions.ExtractToFile(System.IO.Compression.ZipArchiveEntry,System.String,System.Boolean)"> 265 <summary>Extracts an entry in the zip archive to a file, and optionally overwrites an existing file that has the same name.</summary> 266 <param name="source">The zip archive entry to extract a file from.</param> 267 <param name="destinationFileName">The path of the file to create from the contents of the entry. You can specify either a relative or an absolute path. A relative path is interpreted as relative to the current working directory.</param> 268 <param name="overwrite"> 269 <see langword="true" /> to overwrite an existing file that has the same name as the destination file; otherwise, <see langword="false" />.</param> 270 <exception cref="T:System.ArgumentException"> 271 <paramref name="destinationFileName" /> is a zero-length string, contains only white space, or contains one or more invalid characters as defined by <see cref="F:System.IO.Path.InvalidPathChars" />.-or- 272 <paramref name="destinationFileName" /> specifies a directory.</exception> 273 <exception cref="T:System.ArgumentNullException"> 274 <paramref name="destinationFileName" /> is <see langword="null" />. </exception> 275 <exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must not exceed 248 characters, and file names must not exceed 260 characters. </exception> 276 <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive). </exception> 277 <exception cref="T:System.IO.IOException"> 278 <paramref name="destinationFileName" /> already exists and <paramref name="overwrite" /> is <see langword="false" />.-or- An I/O error occurred.-or-The entry is currently open for writing.-or-The entry has been deleted from the archive.</exception> 279 <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission to create the new file.</exception> 280 <exception cref="T:System.IO.InvalidDataException">The entry is 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> 281 <exception cref="T:System.ObjectDisposedException">The zip archive that this entry belongs to has been disposed.</exception> 282 <exception cref="T:System.NotSupportedException"> 283 <paramref name="destinationFileName" /> is in an invalid format. -or-The zip archive for this entry was opened in <see cref="F:System.IO.Compression.ZipArchiveMode.Create" /> mode, which does not permit the retrieval of entries.</exception> 284 </member> 285 <member name="T:System.IO.Compression.ZipFile"> 286 <summary>Provides static methods for creating, extracting, and opening zip archives. </summary> 287 </member> 288 <member name="T:System.IO.Compression.ZipFileExtensions"> 289 <summary>Provides extension methods for the <see cref="T:System.IO.Compression.ZipArchive" /> and <see cref="T:System.IO.Compression.ZipArchiveEntry" /> classes.</summary> 290 </member> 291 </members> 292</doc>