Skip to content

Commit 8a389d0

Browse files
authored
Update exceptions for File.Replace (#7290)
1 parent 2c1f01b commit 8a389d0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

xml/System.IO/File.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4631,7 +4631,11 @@ The following example moves a file.
46314631

46324632
-or-
46334633

4634-
The caller does not have the required permission.</exception>
4634+
The caller does not have the required permission.
4635+
4636+
-or
4637+
4638+
<paramref name="sourceFileName" /> and <paramref name="destinationFileName" /> specify the same existing directory.</exception>
46354639
</Docs>
46364640
</Member>
46374641
<Member MemberName="Replace">
@@ -4742,7 +4746,11 @@ The following example moves a file.
47424746

47434747
-or-
47444748

4745-
The caller does not have the required permission.</exception>
4749+
The caller does not have the required permission.
4750+
4751+
-or
4752+
4753+
<paramref name="sourceFileName" /> and <paramref name="destinationFileName" /> specify the same existing directory.</exception>
47464754
</Docs>
47474755
</Member>
47484756
<Member MemberName="ResolveLinkTarget">

0 commit comments

Comments
 (0)