Skip to content

Commit 727a32e

Browse files
authored
Remove incorrect "read-only file" exception from File.Read* method documentation (#11944)
1 parent 9ba1f1b commit 727a32e

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

xml/System.IO/File.xml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4744,12 +4744,7 @@ The following example moves a file.
47444744
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. </exception>
47454745
<exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
47464746
<exception cref="T:System.IO.IOException">An I/O error occurred while opening the file.</exception>
4747-
<exception cref="T:System.UnauthorizedAccessException">
4748-
<paramref name="path" /> specified a file that is read-only.
4749-
4750-
-or-
4751-
4752-
This operation is not supported on the current platform.
4747+
<exception cref="T:System.UnauthorizedAccessException">This operation is not supported on the current platform.
47534748

47544749
-or-
47554750

@@ -4847,12 +4842,7 @@ The following example moves a file.
48474842
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. </exception>
48484843
<exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
48494844
<exception cref="T:System.IO.IOException">An I/O error occurred while opening the file.</exception>
4850-
<exception cref="T:System.UnauthorizedAccessException">
4851-
<paramref name="path" /> specified a file that is read-only.
4852-
4853-
-or-
4854-
4855-
This operation is not supported on the current platform.
4845+
<exception cref="T:System.UnauthorizedAccessException">This operation is not supported on the current platform.
48564846

48574847
-or-
48584848

@@ -5054,12 +5044,7 @@ The following example moves a file.
50545044
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. </exception>
50555045
<exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
50565046
<exception cref="T:System.IO.IOException">An I/O error occurred while opening the file.</exception>
5057-
<exception cref="T:System.UnauthorizedAccessException">
5058-
<paramref name="path" /> specified a file that is read-only.
5059-
5060-
-or-
5061-
5062-
This operation is not supported on the current platform.
5047+
<exception cref="T:System.UnauthorizedAccessException">This operation is not supported on the current platform.
50635048

50645049
-or-
50655050

@@ -5161,12 +5146,7 @@ The following example moves a file.
51615146
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. </exception>
51625147
<exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
51635148
<exception cref="T:System.IO.IOException">An I/O error occurred while opening the file.</exception>
5164-
<exception cref="T:System.UnauthorizedAccessException">
5165-
<paramref name="path" /> specified a file that is read-only.
5166-
5167-
-or-
5168-
5169-
This operation is not supported on the current platform.
5149+
<exception cref="T:System.UnauthorizedAccessException">This operation is not supported on the current platform.
51705150

51715151
-or-
51725152

0 commit comments

Comments
 (0)