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: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ To contribute, see:
12
12
13
13
- The [.NET Contributor Guide :ledger:](https://learn.microsoft.com/contribute/dotnet/dotnet-contribute) for instructions on procedures we use.
14
14
- Issues labeled [`help wanted`:label:](https://github.com/dotnet/dotnet-api-docs/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+) for ideas.
15
+
- The API reference docs for some assemblies are maintained in the assembly's source code outside this repo. For those assemblies, edits to the XML here are auto-generated and ported, so docs for APIs in those assemblies should be updated by editing the source code comments. For more information, see [here](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/adding-api-guidelines.md#documentation).
16
+
17
+
Namespaces and types whose docs are maintained in the assembly's source code repo set the [`open_to_public_contributors`](https://github.com/dotnet/dotnet-api-docs/blob/0ddbf94c587e7bdbbadc813a8b58fc4160a47b1f/docfx.json#L164) metadata to `false`. (That metadata disables the Edit button on the published docs.)
Copy file name to clipboardExpand all lines: xml/System.Diagnostics.Tracing/EventSourceSettings.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@
137
137
</ReturnValue>
138
138
<MemberValue>4</MemberValue>
139
139
<Docs>
140
-
<summary>The ETW listener should use a manifest-based format when raising events. Setting this option is a directive to the ETW listener should use manifest-based format when raising events. This is the default option when defining a type derived from <seecref="T:System.Diagnostics.Tracing.EventSource" /> using one of the protected <seecref="T:System.Diagnostics.Tracing.EventSource" /> constructors.</summary>
140
+
<summary>The ETW listener should use a manifest-based format when raising events. This is the default option when defining a type derived from <seecref="T:System.Diagnostics.Tracing.EventSource" /> using one of the protected <seecref="T:System.Diagnostics.Tracing.EventSource" /> constructors. This format has lower per-event serialization overhead compared to <seecref="F:System.Diagnostics.Tracing.EventSourceSettings.EtwSelfDescribingEventFormat" />. For more information, see <seehref="/dotnet/fundamentals/runtime-libraries/system-diagnostics-tracing-eventsource#self-describing-tracelogging-vs-manifest-event-formats">Self-describing vs. manifest event formats</see>.</summary>
141
141
</Docs>
142
142
</Member>
143
143
<MemberMemberName="EtwSelfDescribingEventFormat">
@@ -177,7 +177,7 @@
177
177
</ReturnValue>
178
178
<MemberValue>8</MemberValue>
179
179
<Docs>
180
-
<summary>The ETW listener should use self-describing event format. This is the default option when creating a new instance of the <seecref="T:System.Diagnostics.Tracing.EventSource" /> using one of the public <seecref="T:System.Diagnostics.Tracing.EventSource" /> constructors.</summary>
180
+
<summary>The ETW listener should use self-describing event format. This is the default option when creating a new instance of the <seecref="T:System.Diagnostics.Tracing.EventSource" /> using one of the public <seecref="T:System.Diagnostics.Tracing.EventSource" /> constructors. This format has more capabilities and better compatibility with listeners that don't use the TraceEvent library, but has higher per-event serialization overhead compared to <seecref="F:System.Diagnostics.Tracing.EventSourceSettings.EtwManifestEventFormat" />. For more information, see <seehref="/dotnet/fundamentals/runtime-libraries/system-diagnostics-tracing-eventsource#self-describing-tracelogging-vs-manifest-event-formats">Self-describing vs. manifest event formats</see>.</summary>
Copy file name to clipboardExpand all lines: xml/System.Formats.Tar/TarFile.xml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,7 @@
223
223
<seelangword="true" /> to overwrite files and directories in <paramrefname="destinationDirectoryName" />; <seelangword="false" /> to avoid overwriting, and throw if any files or directories are found with existing names.</param>
224
224
<summary>Extracts the contents of a stream that represents a tar archive into the specified directory.</summary>
225
225
<remarks>
226
+
<para>If a symbolic link or junction in the tar archive results in a file being extracted outside the specified <paramrefname="destinationDirectoryName" />, an <seecref="T:System.IO.IOException" /> is thrown to ensure extraction remains within the same directory.</para>
226
227
<para>Files of type <seecref="F:System.Formats.Tar.TarEntryType.BlockDevice" />, <seecref="F:System.Formats.Tar.TarEntryType.CharacterDevice" />, or <seecref="F:System.Formats.Tar.TarEntryType.Fifo" /> can only be extracted in Unix platforms.</para>
227
228
<para>Elevation is required to extract a <seecref="F:System.Formats.Tar.TarEntryType.BlockDevice" /> or <seecref="F:System.Formats.Tar.TarEntryType.CharacterDevice" /> to disk.</para>
228
229
</remarks>
@@ -273,6 +274,7 @@ Extracting one of the tar entries would have resulted in a file outside the spec
273
274
<seelangword="true" /> to overwrite files and directories in <paramrefname="destinationDirectoryName" />; <seelangword="false" /> to avoid overwriting, and throw if any files or directories are found with existing names.</param>
274
275
<summary>Extracts the contents of a tar file into the specified directory.</summary>
275
276
<remarks>
277
+
<para>If a symbolic link or junction in the tar archive results in a file being extracted outside the specified <paramrefname="destinationDirectoryName" />, an <seecref="T:System.IO.IOException" /> is thrown to ensure extraction remains within the same directory.</para>
276
278
<para>Files of type <seecref="F:System.Formats.Tar.TarEntryType.BlockDevice" />, <seecref="F:System.Formats.Tar.TarEntryType.CharacterDevice" />, or <seecref="F:System.Formats.Tar.TarEntryType.Fifo" /> can only be extracted in Unix platforms.</para>
277
279
<para>Elevation is required to extract a <seecref="F:System.Formats.Tar.TarEntryType.BlockDevice" /> or <seecref="F:System.Formats.Tar.TarEntryType.CharacterDevice" /> to disk.</para>
278
280
</remarks>
@@ -322,6 +324,7 @@ Extracting one of the tar entries would have resulted in a file outside the spec
322
324
<summary>Asynchronously extracts the contents of a stream that represents a tar archive into the specified directory.</summary>
323
325
<returns>A task that represents the asynchronous extraction operation.</returns>
324
326
<remarks>
327
+
<para>If a symbolic link or junction in the tar archive results in a file being extracted outside the specified <paramrefname="destinationDirectoryName" />, an <seecref="T:System.IO.IOException" /> is thrown to ensure extraction remains within the same directory.</para>
325
328
<para>Files of type <seecref="F:System.Formats.Tar.TarEntryType.BlockDevice" />, <seecref="F:System.Formats.Tar.TarEntryType.CharacterDevice" />, or <seecref="F:System.Formats.Tar.TarEntryType.Fifo" /> can only be extracted in Unix platforms.</para>
326
329
<para>Elevation is required to extract a <seecref="F:System.Formats.Tar.TarEntryType.BlockDevice" /> or <seecref="F:System.Formats.Tar.TarEntryType.CharacterDevice" /> to disk.</para>
327
330
<para>This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as <seecref="T:System.ArgumentException" />, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by <seecref="M:System.Formats.Tar.TarFile.ExtractToDirectory(System.IO.Stream,System.String,System.Boolean)" />.</para>
@@ -376,6 +379,7 @@ Extracting one of the tar entries would have resulted in a file outside the spec
376
379
<summary>Asynchronously extracts the contents of a tar file into the specified directory.</summary>
377
380
<returns>A task that represents the asynchronous extraction operation.</returns>
378
381
<remarks>
382
+
<para>If a symbolic link or junction in the tar archive results in a file being extracted outside the specified <paramrefname="destinationDirectoryName" />, an <seecref="T:System.IO.IOException" /> is thrown to ensure extraction remains within the same directory.</para>
379
383
<para>Files of type <seecref="F:System.Formats.Tar.TarEntryType.BlockDevice" />, <seecref="F:System.Formats.Tar.TarEntryType.CharacterDevice" />, or <seecref="F:System.Formats.Tar.TarEntryType.Fifo" /> can only be extracted in Unix platforms.</para>
380
384
<para>Elevation is required to extract a <seecref="F:System.Formats.Tar.TarEntryType.BlockDevice" /> or <seecref="F:System.Formats.Tar.TarEntryType.CharacterDevice" /> to disk.</para>
381
385
<para>This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as <seecref="T:System.ArgumentException" />, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by <seecref="M:System.Formats.Tar.TarFile.ExtractToDirectory(System.String,System.String,System.Boolean)" />.</para>
Copy file name to clipboardExpand all lines: xml/System.IO.Compression/ZipFile.xml
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1021,6 +1021,7 @@ An I/O error occurred while opening a file to be archived.</exception>
1021
1021
<remarks>This method creates the specified directory and all subdirectories. The destination directory cannot already exist.
1022
1022
Exceptions related to validating the paths in the <paramrefname="destinationDirectoryName" /> or the files in the zip archive contained in <paramrefname="source" /> parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted.
1023
1023
Each extracted file has the same relative path to the directory specified by <paramrefname="destinationDirectoryName" /> as its source entry has to the root of the archive.
1024
+
If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
1024
1025
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.</remarks>
1025
1026
<exceptioncref="T:System.ArgumentException">
1026
1027
<paramrefname="destinationDirectoryName" /> is <seecref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.</exception>
@@ -1100,6 +1101,8 @@ An archive entry was compressed by using a compression method that isn't support
1100
1101
## Remarks
1101
1102
This method creates the specified directory and all subdirectories. The destination directory cannot already exist. Exceptions related to validating the paths in the `destinationDirectoryName` or `sourceArchiveFileName` parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted. Each extracted file has the same relative path to the directory specified by `destinationDirectoryName` as its source entry has to the root of the archive.
1102
1103
1104
+
If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
1105
+
1103
1106
## Examples
1104
1107
This example shows how to create and extract a zip archive by using the <xref:System.IO.Compression.ZipFile> class. It compresses the contents of a folder into a zip archive and extracts that content to a new folder. To use the <xref:System.IO.Compression.ZipFile> class, you must reference the `System.IO.Compression.FileSystem` assembly in your project.
1105
1108
@@ -1174,6 +1177,7 @@ An archive entry was compressed by using a compression method that isn't support
1174
1177
<remarks>This method creates the specified directory and all subdirectories. The destination directory cannot already exist.
1175
1178
Exceptions related to validating the paths in the <paramrefname="destinationDirectoryName" /> or the files in the zip archive contained in <paramrefname="source" /> parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted.
1176
1179
Each extracted file has the same relative path to the directory specified by <paramrefname="destinationDirectoryName" /> as its source entry has to the root of the archive.
1180
+
If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
1177
1181
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.</remarks>
1178
1182
<exceptioncref="T:System.ArgumentException">
1179
1183
<paramrefname="destinationDirectoryName" /> is <seecref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.</exception>
@@ -1330,6 +1334,8 @@ Each entry will be extracted such that the extracted file has the same relative
1330
1334
1331
1335
The `sourceArchiveFileName` and `destinationDirectoryName` parameters accept both relative and absolute paths. A relative path is interpreted as relative to the current working directory.
1332
1336
1337
+
If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
1338
+
1333
1339
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.
1334
1340
1335
1341
]]></format>
@@ -1436,6 +1442,8 @@ A <see cref="T:System.IO.Compression.ZipArchiveEntry" /> has been compressed usi
1436
1442
1437
1443
This method creates the specified directory and all subdirectories, if necessary. Exceptions related to validating the paths in the `destinationDirectoryName` or `sourceArchiveFileName` parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted. Each extracted file has the same relative path to the directory specified by `destinationDirectoryName` as its source entry has to the root of the archive.
1438
1444
1445
+
If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
1446
+
1439
1447
If `entryNameEncoding` is set to a value other than `null`, entry names and comments are decoded according to the following rules:
1440
1448
1441
1449
- For entries where the language encoding flag (in the general-purpose bit flag of the local file header) is not set, the entry names and comments are decoded by using the specified encoding.
@@ -1526,6 +1534,7 @@ If `entryNameEncoding` is set to `null`, entry names and comments are decoded ac
1526
1534
<remarks>This method creates the specified directory and all subdirectories. The destination directory cannot already exist.
1527
1535
Exceptions related to validating the paths in the <paramrefname="destinationDirectoryName" /> or the files in the zip archive contained in <paramrefname="source" /> parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted.
1528
1536
Each extracted file has the same relative path to the directory specified by <paramrefname="destinationDirectoryName" /> as its source entry has to the root of the archive.
1537
+
If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
1529
1538
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.</remarks>
1530
1539
<exceptioncref="T:System.ArgumentException">
1531
1540
<paramrefname="destinationDirectoryName" /> is <seecref="F:System.String.Empty" />, contains only white space, or contains at least one invalid character.
@@ -1622,6 +1631,8 @@ An archive entry was compressed by using a compression method that isn't support
1622
1631
1623
1632
The `sourceArchiveFileName` and `destinationDirectoryName` parameters accept both relative and absolute paths. A relative path is interpreted as relative to the current working directory.
1624
1633
1634
+
If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
1635
+
1625
1636
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.
0 commit comments