Skip to content

Commit d692a11

Browse files
JalalxRon Petrusha
authored andcommitted
add UnauthorizedAccessException to FileStream(String, FileMode) constructor (#1972)
1 parent fa70eb6 commit d692a11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xml/System.IO/FileStream.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@
350350
<paramref name="path" /> is <see langword="null" />.</exception>
351351
<exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
352352
<exception cref="T:System.IO.FileNotFoundException">The file cannot be found, such as when <paramref name="mode" /> is <see langword="FileMode.Truncate" /> or <see langword="FileMode.Open" />, and the file specified by <paramref name="path" /> does not exist. The file must already exist in these modes.</exception>
353+
<exception cref="T:System.UnauthorizedAccessException">
354+
<paramref name="path" /> specifies a file that is read-only.</exception>
353355
<exception cref="T:System.IO.IOException">An I/O error, such as specifying <see langword="FileMode.CreateNew" /> when the file specified by <paramref name="path" /> already exists, occurred.
354356

355357
-or-

0 commit comments

Comments
 (0)