You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.IO.Compression/ZipFile.xml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -764,7 +764,7 @@ An I/O error occurred while opening a file to be archived.</exception>
764
764
<paramname="compressionLevel">One of the enumeration values that specifies the level of the compression (speed/memory vs. compressed size trade-off).</param>
765
765
<paramname="includeBaseDirectory">
766
766
<seelangword="true" /> to indicate that a directory named <paramrefname="sourceDirectoryName" /> should be included at the root of the archive. <seelangword=
767
-
"false" /> to indicate that the files and directories in <paramrefname="sourceDirectoryName" /> should be included directly in the archive.</para>
767
+
"false" /> to indicate that the files and directories in <paramrefname="sourceDirectoryName" /> should be included directly in the archive.
768
768
</param>
769
769
<paramname="cancellationToken">The cancellation token to monitor for cancellation requests.</param>
770
770
<summary>
@@ -934,7 +934,7 @@ An I/O error occurred while opening a file to be archived.</exception>
934
934
<para>If an error is encountered while adding files to the archive, this method will stop adding files and leave the archive in an invalid state. The paths are permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. If a file in the archive has data in the last write time field that is not a valid zip timestamp, an indicator value of 1980 January 1 at midnight will be used for the file's last modified time.If an entry with the specified name already exists in the archive, a second entry will be created that has an identical name.Since no <code>CompressionLevel</code> is specified, the default provided by the implementation of the underlying compression algorithm will be used; the <code>ZipArchive</code> will not impose its own default.</para>
935
935
<para>(Currently, the underlying compression algorithm is provided by the <seecref="T:System.IO.Compression.DeflateStream" /> class.)</para>
936
936
<para>Specifying a value for <paramrefname="entryNameEncoding" /> other than <seelangword="null" /> is discouraged.</para>
937
-
<para>However, this may be necessary for interoperability with zip archive tools and libraries that do not correctly support UTF-8 encoding for entry names or comments.
937
+
<para>However, this may be necessary for interoperability with zip archive tools and libraries that do not correctly support UTF-8 encoding for entry names or comments.</para>
938
938
<para>This value is used as follows while creating the archive:</para>
939
939
<para>If <paramrefname="entryNameEncoding" /> is not specified (<code>== null</code>):</para>
940
940
<list>
@@ -949,7 +949,7 @@ An I/O error occurred while opening a file to be archived.</exception>
949
949
<br />The language encoding flag (EFS) in the general purpose bit flag of the local file header for each entry will be set if and only if the specified <paramrefname="entryNameEncoding" /> is a UTF-8 encoding.</item>
950
950
</list>
951
951
<para>Unicode encodings other than UTF-8 can't be used for the <paramrefname="entryNameEncoding" />, otherwise an <seecref="T:System.ArgumentException" /> is thrown.</para>
952
-
</remarks>
952
+
</remarks>
953
953
<exceptioncref="T:System.ArgumentException">
954
954
<para>
955
955
<paramrefname="sourceDirectoryName" /> or <paramrefname="destinationArchiveFileName" /> is a zero-length string, contains only whitespace, or contains one or more invalid characters as defined by <code>InvalidPathChars</code>.</para>
@@ -1980,7 +1980,7 @@ An archive entry has been compressed using a compression method that isn't suppo
1980
1980
<para>If there is an error while extracting the archive, the archive will remain partially extracted. Each entry will be extracted such that the extracted file has the same relative path to the destinationDirectoryName as the entry has to the archive. The path is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. If a file to be archived has an invalid last modified time, the first datetime representable in the zip timestamp format (midnight on January 1, 1980) will be used.</para>
1981
1981
</remarks>
1982
1982
<exceptioncref="T:System.ArgumentException">
1983
-
<paramrefname="sourceArchiveFileName" /> or <paramrefname="destinationDirectoryName" /> is a zero-length string, contains only whitespace, or contains one or more invalid characters as defined by InvalidPathChars.</para>
1983
+
<paramrefname="sourceArchiveFileName" /> or <paramrefname="destinationDirectoryName" /> is a zero-length string, contains only whitespace, or contains one or more invalid characters as defined by InvalidPathChars.
1984
1984
</exception>
1985
1985
<exceptioncref="T:System.ArgumentNullException">
1986
1986
<paramrefname="sourceArchiveFileName" /> or <paramrefname="destinationDirectoryName" /> is <seelangword="null" />.</exception>
@@ -2525,7 +2525,7 @@ An unspecified I/O error occurred while opening the file.</exception>
2525
2525
<summary>Asynchronously opens a <code>ZipArchive</code> on the specified <paramrefname="archiveFileName" /> in the specified <code>ZipArchiveMode</code> mode.</summary>
<para>The path is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory.</para>
2530
2530
<para>For <paramrefname="mode" />:</para>
2531
2531
<para>If <seecref="F:System.IO.Compression.ZipArchiveMode.Read" /> is specified, the file is opened with <code>System.IO.FileMode.Open</code>, and will throw a <code>FileNotFoundException</code> if the file does not exist.</para>
Copy file name to clipboardExpand all lines: xml/System.IO.Compression/ZipFileExtensions.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -919,7 +919,7 @@ A <see cref="T:System.IO.Compression.ZipArchiveEntry" /> has been compressed usi
919
919
<returns>To be added.</returns>
920
920
<remarks>
921
921
<para>The specified path is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory.</para>
922
-
</para>The last write time of the file is set to the entry's last write time. This method does not allow overwriting of an existing file with the same name. Attempting to extract explicit directories (entries with names that end in directory separator characters) will not result in the creation of a directory.</para>
922
+
<para>The last write time of the file is set to the entry's last write time. This method does not allow overwriting of an existing file with the same name. Attempting to extract explicit directories (entries with names that end in directory separator characters) will not result in the creation of a directory.</para>
923
923
</remarks>
924
924
<exceptioncref="T:System.UnauthorizedAccessException">The caller does not have the required permission.</exception>
0 commit comments