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.Buffers/ArrayBufferWriter`1.xml
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -387,7 +387,10 @@ This method never returns <xref:System.Span%601.Empty?displayProperty=nameWithTy
387
387
<Parameters />
388
388
<Docs>
389
389
<summary>Resets the data written to the underlying buffer without zeroing its content.</summary>
390
-
<remarks><para> You must reset or clear the <seecref="T:System.Buffers.ArrayBufferWriter`1" /> before trying to re-use it.</para><para> If you reset the writer using the <seecref="M:System.Buffers.ArrayBufferWriter`1.ResetWrittenCount" /> method, the underlying buffer will not be cleared.</para></remarks>
390
+
<remarks>
391
+
<para>You must reset or clear the <seecref="T:System.Buffers.ArrayBufferWriter`1" /> before trying to re-use it.</para>
392
+
<para>If you reset the writer using the <seecref="M:System.Buffers.ArrayBufferWriter`1.ResetWrittenCount" /> method, the underlying buffer will not be cleared.</para>
Copy file name to clipboardExpand all lines: xml/System.Diagnostics/Activity.xml
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -255,7 +255,11 @@ Callers should either restrict the number of events added to the same `Activity`
255
255
<summary>Add an <seecref="T:System.Diagnostics.ActivityEvent" /> object containing the exception information to the <seecref="P:System.Diagnostics.Activity.Events" /> list.</summary>
256
256
<returns>
257
257
<seelangword="this" /> for convenient chaining.</returns>
258
-
<remarks><para>- The name of the event will be "exception", and it will include the tags "exception.message", "exception.stacktrace", and "exception.type", in addition to the tags provided in the <paramrefname="tags" /> parameter.</para><para>- Any registered <seecref="T:System.Diagnostics.ActivityListener" /> with the <seecref="P:System.Diagnostics.ActivityListener.ExceptionRecorder" /> callback will be notified about this exception addition before the <seecref="T:System.Diagnostics.ActivityEvent" /> object is added to the <seecref="P:System.Diagnostics.Activity.Events" /> list.</para><para>- Any registered <seecref="T:System.Diagnostics.ActivityListener" /> with the <seecref="P:System.Diagnostics.ActivityListener.ExceptionRecorder" /> callback that adds "exception.message", "exception.stacktrace", or "exception.type" tags will not have these tags overwritten, except by any subsequent <seecref="T:System.Diagnostics.ActivityListener" /> that explicitly overwrites them.</para></remarks>
258
+
<remarks>
259
+
<para>- The name of the event will be "exception", and it will include the tags "exception.message", "exception.stacktrace", and "exception.type", in addition to the tags provided in the <paramrefname="tags" /> parameter.</para>
260
+
<para>- Any registered <seecref="T:System.Diagnostics.ActivityListener" /> with the <seecref="P:System.Diagnostics.ActivityListener.ExceptionRecorder" /> callback will be notified about this exception addition before the <seecref="T:System.Diagnostics.ActivityEvent" /> object is added to the <seecref="P:System.Diagnostics.Activity.Events" /> list.</para>
261
+
<para>- Any registered <seecref="T:System.Diagnostics.ActivityListener" /> with the <seecref="P:System.Diagnostics.ActivityListener.ExceptionRecorder" /> callback that adds "exception.message", "exception.stacktrace", or "exception.type" tags will not have these tags overwritten, except by any subsequent <seecref="T:System.Diagnostics.ActivityListener" /> that explicitly overwrites them.</para>
Copy file name to clipboardExpand all lines: xml/System.Diagnostics/ProcessStartInfo.xml
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1746,7 +1746,11 @@ You can use asynchronous read operations to avoid these dependencies and their d
1746
1746
<value>
1747
1747
<seelangword="true" /> if the user credentials are only used for network resources; otherwise, <seelangword="false" />.
1748
1748
</value>
1749
-
<remarks><para>This property is referenced if the process is being started by using the user name, password, and domain.</para><para>If the value is <seelangword="true" />, the process is started with the caller's identity. The system creates a new logon session with the given credentials, which is used on the network only.</para><para>The system does not validate the specified credentials. Therefore, the process can start, but it may not have access to network resources.</para></remarks>
1749
+
<remarks>
1750
+
<para>This property is referenced if the process is being started by using the user name, password, and domain.</para>
1751
+
<para>If the value is <seelangword="true" />, the process is started with the caller's identity. The system creates a new logon session with the given credentials, which is used on the network only.</para>
1752
+
<para>The system does not validate the specified credentials. Therefore, the process can start, but it may not have access to network resources.</para>
Copy file name to clipboardExpand all lines: xml/System.IO.Compression/ZipFile.xml
+21-4Lines changed: 21 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -905,10 +905,27 @@ An I/O error occurred while opening a file to be archived.</exception>
905
905
<paramname="destinationArchiveFileName">The name of the archive to be created.</param>
906
906
<paramname="compressionLevel">The level of the compression (speed/memory vs. compressed size trade-off).</param>
907
907
<paramname="includeBaseDirectory">
908
-
<para>
909
-
<code>true</code> to indicate that a directory named <code>sourceDirectoryName</code> should be included at the root of the archive. <code>false</code> to indicate that the files and directories in <code>sourceDirectoryName</code> should be included directly in the archive.</para>
908
+
<para><code>true</code> to indicate that a directory named <code>sourceDirectoryName</code> should be included at the root of the archive. <code>false</code> to indicate that the files and directories in <code>sourceDirectoryName</code> should be included directly in the archive.</para>
909
+
</param>
910
+
<paramname="entryNameEncoding">
911
+
<para>The encoding to use when reading or writing entry names and comments in this ZipArchive.</para>
912
+
<para>NOTE: Specifying this parameter to values other than <seelangword="null" /> is discouraged.</para>
913
+
<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.
914
+
<br /> This value is used as follows while creating the archive:</para>
915
+
<para>If <code>entryNameEncoding</code> is not specified (<code>== null</code>):</para>
916
+
<list>
917
+
<item>For file names or comments that contain characters outside the ASCII range:
918
+
<br /> The language encoding flag (EFS) will be set in the general purpose bit flag of the local file header of the corresponding entry, and UTF-8 (<code>Encoding.UTF8</code>) will be used in order to encode the entry name and comment into bytes.</item>
919
+
<item>For file names or comments that do not contain characters outside the ASCII range:
920
+
<br /> the language encoding flag (EFS) will not be set in the general purpose bit flag of the local file header of the corresponding entry, and the current system default code page (<code>Encoding.Default</code>) will be used to encode the entry names and comments into bytes.</item>
921
+
</list>
922
+
<para>If <code>entryNameEncoding</code> is specified (<code>!= null</code>):</para>
923
+
<list>
924
+
<item>The specified <code>entryNameEncoding</code> will always be used to encode the entry names and comments into bytes.
925
+
<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 <code>entryNameEncoding</code> is a UTF-8 encoding.</item>
926
+
</list>
927
+
<para>Note that Unicode encodings other than UTF-8 may not be currently used for the <code>entryNameEncoding</code>, otherwise an <seecref="T:System.ArgumentException" /> is thrown.</para>
910
928
</param>
911
-
<param name="entryNameEncoding"><para>The encoding to use when reading or writing entry names and comments in this ZipArchive.</para><para>NOTE: Specifying this parameter to values other than <see langword="null" /> is discouraged.</para><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.<br /> This value is used as follows while creating the archive:</para><para>If <code>entryNameEncoding</code> is not specified (<code>== null</code>):</para><list> <item>For file names or comments that contain characters outside the ASCII range:<br /> The language encoding flag (EFS) will be set in the general purpose bit flag of the local file header of the corresponding entry, and UTF-8 (<code>Encoding.UTF8</code>) will be used in order to encode the entry name and comment into bytes.</item> <item>For file names or comments that do not contain characters outside the ASCII range:<br /> the language encoding flag (EFS) will not be set in the general purpose bit flag of the local file header of the corresponding entry, and the current system default code page (<code>Encoding.Default</code>) will be used to encode the entry names and comments into bytes.</item> </list><para>If <code>entryNameEncoding</code> is specified (<code>!= null</code>):</para><list> <item>The specified <code>entryNameEncoding</code> will always be used to encode the entry names and comments into bytes.</para><para>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 <code>entryNameEncoding</code> is a UTF-8 encoding.</item> </list><para>Note that Unicode encodings other than UTF-8 may not be currently used for the <code>entryNameEncoding</code>, otherwise an <see cref="T:System.ArgumentException" /> is thrown.</para></param>
912
929
<paramname="cancellationToken">The cancellation token to monitor for cancellation requests.</param>
913
930
<summary><para>Asynchronously creates a Zip archive at the path <code>destinationArchiveFileName</code> that contains the files and directories in the directory specified by <code>sourceDirectoryName</code>. The directory structure is preserved in the archive, and a recursive search is done for files to be archived. The archive must not exist. If the directory is empty, an empty archive will be created.</para><para>If a file in the directory cannot be added to the archive, the archive will be left incomplete and invalid and the method will throw an exception. This method optionally includes the base directory in the archive.</para><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><para>(Currently, the underlying compression algorithm is provided by the <code>System.IO.Compression.DeflateStream</code> class.)</para></summary>
914
931
<returns>To be added.</returns>
@@ -2530,7 +2547,7 @@ An unspecified I/O error occurred while opening the file.</exception>
2530
2547
<para>If the file exists and is empty or does not exist, a new Zip file will be created.</para>
2531
2548
<para>Note that creating a Zip file with the <code>ZipArchiveMode.Create</code> mode is more efficient when creating a new Zip file.</para>
2532
2549
</param>
2533
-
<param name="entryNameEncoding"><para>The encoding to use when reading or writing entry names and comments in this ZipArchive.</para><para>NOTE: Specifying this parameter to values other than <see langword="null" /> is discouraged.</para><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.<br /> This value is used as follows:</para><para> <strong>Reading (opening) ZIP archive files:</strong> </para><para>If <code>entryNameEncoding</code> is not specified (<code>== null</code>):</para><list> <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header is <em>not</em> set, use the current system default code page (<code>Encoding.Default</code>) in order to decode the entry name and comment.</item> <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header <em>is</em> set, use UTF-8 (<code>Encoding.UTF8</code>) in order to decode the entry name and comment.</item> </list><para>If <code>entryNameEncoding</code> is specified (<code>!= null</code>):</para><list> <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header is <em>not</em> set, use the specified <code>entryNameEncoding</code> in order to decode the entry name and comment.</item> <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header <em>is</em> set, use UTF-8 (<code>Encoding.UTF8</code>) in order to decode the entry name and comment.</item> </list><para> <strong>Writing (saving) ZIP archive files:</strong> </para><para>If <code>entryNameEncoding</code> is not specified (<code>== null</code>):</para><list> <item>For entry names or comments that contain characters outside the ASCII range, the language encoding flag (EFS) will be set in the general purpose bit flag of the local file header, and UTF-8 (<code>Encoding.UTF8</code>) will be used in order to encode the entry name and comment into bytes.</item> <item>For entry names or comments that do not contain characters outside the ASCII range, the language encoding flag (EFS) will not be set in the general purpose bit flag of the local file header, and the current system default code page (<code>Encoding.Default</code>) will be used to encode the entry names and comments into bytes.</item> </list><para>If <code>entryNameEncoding</code> is specified (<code>!= null</code>):</para><list> <item>The specified <code>entryNameEncoding</code> will always be used to encode the entry names and comments into bytes.</para><para>The language encoding flag (EFS) in the general purpose bit flag of the local file header will be set if and only if the specified <code>entryNameEncoding</code> is a UTF-8 encoding.</item> </list><para>Note that Unicode encodings other than UTF-8 may not be currently used for the <code>entryNameEncoding</code>, otherwise an <see cref="T:System.ArgumentException" /> is thrown.</para></param>
2550
+
<param name="entryNameEncoding"><para>The encoding to use when reading or writing entry names and comments in this ZipArchive.</para><para>NOTE: Specifying this parameter to values other than <see langword="null" /> is discouraged.</para><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.<br /> This value is used as follows:</para><para><strong>Reading (opening) ZIP archive files:</strong> </para><para>If <code>entryNameEncoding</code> is not specified (<code>== null</code>):</para><list> <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header is <em>not</em> set, use the current system default code page (<code>Encoding.Default</code>) in order to decode the entry name and comment.</item> <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header <em>is</em> set, use UTF-8 (<code>Encoding.UTF8</code>) in order to decode the entry name and comment.</item> </list><para>If <code>entryNameEncoding</code> is specified (<code>!= null</code>):</para><list> <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header is <em>not</em> set, use the specified <code>entryNameEncoding</code> in order to decode the entry name and comment.</item> <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header <em>is</em> set, use UTF-8 (<code>Encoding.UTF8</code>) in order to decode the entry name and comment.</item> </list><para><strong>Writing (saving) ZIP archive files:</strong> </para><para>If <code>entryNameEncoding</code> is not specified (<code>== null</code>):</para><list> <item>For entry names or comments that contain characters outside the ASCII range, the language encoding flag (EFS) will be set in the general purpose bit flag of the local file header, and UTF-8 (<code>Encoding.UTF8</code>) will be used in order to encode the entry name and comment into bytes.</item> <item>For entry names or comments that do not contain characters outside the ASCII range, the language encoding flag (EFS) will not be set in the general purpose bit flag of the local file header, and the current system default code page (<code>Encoding.Default</code>) will be used to encode the entry names and comments into bytes.</item> </list><para>If <code>entryNameEncoding</code> is specified (<code>!= null</code>):</para><list> <item>The specified <code>entryNameEncoding</code> will always be used to encode the entry names and comments into bytes.</para><para>The language encoding flag (EFS) in the general purpose bit flag of the local file header will be set if and only if the specified <code>entryNameEncoding</code> is a UTF-8 encoding.</item> </list><para>Note that Unicode encodings other than UTF-8 may not be currently used for the <code>entryNameEncoding</code>, otherwise an <see cref="T:System.ArgumentException" /> is thrown.</para></param>
2534
2551
<paramname="cancellationToken">The cancellation token to monitor for cancellation requests.</param>
2535
2552
<summary>Asynchronously opens a <code>ZipArchive</code> on the specified <code>archiveFileName</code> in the specified <code>ZipArchiveMode</code> mode.</summary>
0 commit comments