Skip to content

Commit 4a48dd3

Browse files
authored
Remove invalid exceptions
1 parent b1b2a02 commit 4a48dd3

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

xml/System.IO/Directory.xml

+24-28
Original file line numberDiff line numberDiff line change
@@ -983,12 +983,13 @@ An I/O error occurred.</exception>
983983
<format type="text/markdown"><![CDATA[
984984
985985
## Remarks
986-
`searchPattern` can be a combination of literal and wildcard characters, but it doesn't support regular expressions. The following wildcard specifiers are permitted in `searchPattern`.
986+
987+
`searchPattern` can be a combination of literal and wildcard characters, but it doesn't support regular expressions. The following wildcard specifiers are permitted in `searchPattern`.
987988
988-
|Wildcard specifier|Matches|
989-
|------------------------|-------------|
990-
|\* (asterisk)|Zero or more characters in that position.|
991-
|? (question mark)|Exactly one character in that position.|
989+
| Wildcard specifier | Matches |
990+
|--------------------|-------------------------------------------|
991+
| \* (asterisk) | Zero or more characters in that position. |
992+
| ? (question mark) | Exactly one character in that position. |
992993
993994
Characters other than the wildcard are literal characters. For example, the `searchPattern` string "\*t" searches for all names in `path` ending with the letter "t". The `searchPattern` string "s\*" searches for all names in `path` beginning with the letter "s".
994995
@@ -1009,8 +1010,6 @@ An I/O error occurred.</exception>
10091010
<paramref name="searchPattern" /> does not contain a valid pattern.</exception>
10101011
<exception cref="T:System.ArgumentNullException">
10111012
<paramref name="path" /> or <paramref name="searchPattern" /> is <see langword="null" />.</exception>
1012-
<exception cref="T:System.ArgumentOutOfRangeException">
1013-
<paramref name="searchOption" /> is not a valid <see cref="T:System.IO.SearchOption" /> value.</exception>
10141013
<exception cref="T:System.IO.DirectoryNotFoundException">
10151014
<paramref name="path" /> is invalid, such as referring to an unmapped drive.</exception>
10161015
<exception cref="T:System.IO.IOException">
@@ -1397,8 +1396,6 @@ The returned collection is not cached. Each call to the <xref:System.Collections
13971396
-or-
13981397

13991398
<paramref name="searchPattern" /> is <see langword="null" />.</exception>
1400-
<exception cref="T:System.ArgumentOutOfRangeException">
1401-
<paramref name="enumerationOptions" /> is not a valid <see cref="T:System.IO.EnumerationOptions" /> value.</exception>
14021399
<exception cref="T:System.IO.DirectoryNotFoundException">
14031400
<paramref name="path" /> is invalid, such as referring to an unmapped drive.</exception>
14041401
<exception cref="T:System.IO.IOException">
@@ -1740,12 +1737,13 @@ The returned collection is not cached. Each call to the <xref:System.Collections
17401737
<format type="text/markdown"><![CDATA[
17411738
17421739
## Remarks
1743-
`searchPattern` can be a combination of literal and wildcard characters, but it doesn't support regular expressions. The following wildcard specifiers are permitted in `searchPattern`.
1740+
1741+
`searchPattern` can be a combination of literal and wildcard characters, but it doesn't support regular expressions. The following wildcard specifiers are permitted in `searchPattern`.
17441742
1745-
|Wildcard specifier|Matches|
1746-
|------------------------|-------------|
1747-
|\* (asterisk)|Zero or more characters in that position.|
1748-
|? (question mark)|Exactly one character in that position.|
1743+
| Wildcard specifier | Matches |
1744+
|--------------------|-------------------------------------------|
1745+
| \* (asterisk) | Zero or more characters in that position. |
1746+
| ? (question mark) | Exactly one character in that position. |
17491747
17501748
Characters other than the wildcard are literal characters. For example, the `searchPattern` string "\*t" searches for all names in `path` ending with the letter "t". The `searchPattern` string "s\*" searches for all names in `path` beginning with the letter "s".
17511749
@@ -1778,8 +1776,6 @@ The returned collection is not cached. Each call to the <xref:System.Collections
17781776
-or-
17791777

17801778
<paramref name="searchPattern" /> is <see langword="null" />.</exception>
1781-
<exception cref="T:System.ArgumentOutOfRangeException">
1782-
<paramref name="enumerationOptions" /> is not a valid <see cref="T:System.IO.EnumerationOptions" /> value.</exception>
17831779
<exception cref="T:System.IO.DirectoryNotFoundException">
17841780
<paramref name="path" /> is invalid, such as referring to an unmapped drive.</exception>
17851781
<exception cref="T:System.IO.IOException">
@@ -2634,10 +2630,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections
26342630
26352631
`searchPattern` can be a combination of literal and wildcard characters, but it doesn't support regular expressions. The following wildcard specifiers are permitted in `searchPattern`.
26362632
2637-
|Wildcard specifier|Matches|
2638-
|------------------------|-------------|
2639-
|\* (asterisk)|Zero or more characters in that position.|
2640-
|? (question mark)|Exactly one character in that position.|
2633+
| Wildcard specifier | Matches |
2634+
|--------------------|-------------------------------------------|
2635+
| \* (asterisk) | Zero or more characters in that position. |
2636+
| ? (question mark) | Exactly one character in that position. |
26412637
26422638
Characters other than the wildcard are literal characters. For example, the `searchPattern` string "\*t" searches for all names in `path` ending with the letter "t". The `searchPattern` string "s\*" searches for all names in `path` beginning with the letter "s".
26432639
@@ -3125,10 +3121,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections
31253121
31263122
`searchPattern` can be a combination of literal and wildcard characters, but it doesn't support regular expressions. The following wildcard specifiers are permitted in `searchPattern`.
31273123
3128-
|Wildcard specifier|Matches|
3129-
|------------------------|-------------|
3130-
|\* (asterisk)|Zero or more characters in that position.|
3131-
|? (question mark)|Exactly one character in that position.|
3124+
| Wildcard specifier | Matches |
3125+
|--------------------|-------------------------------------------|
3126+
| \* (asterisk) | Zero or more characters in that position. |
3127+
| ? (question mark) | Exactly one character in that position. |
31323128
31333129
Characters other than the wildcard are literal characters. For example, the `searchPattern` string "\*t" searches for all names in `path` ending with the letter "t". The `searchPattern` string "s\*" searches for all names in `path` beginning with the letter "s".
31343130
@@ -3536,10 +3532,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections
35363532
35373533
`searchPattern` can be a combination of literal and wildcard characters, but it doesn't support regular expressions. The following wildcard specifiers are permitted in `searchPattern`.
35383534
3539-
|Wildcard specifier|Matches|
3540-
|------------------------|-------------|
3541-
|\* (asterisk)|Zero or more characters in that position.|
3542-
|? (question mark)|Exactly one character in that position.|
3535+
| Wildcard specifier | Matches |
3536+
|--------------------|-------------------------------------------|
3537+
| \* (asterisk) | Zero or more characters in that position. |
3538+
| ? (question mark) | Exactly one character in that position. |
35433539
35443540
Characters other than the wildcard are literal characters. For example, the `searchPattern` string "\*t" searches for all names in `path` ending with the letter "t". The `searchPattern` string "s\*" searches for all names in `path` beginning with the letter "s".
35453541

0 commit comments

Comments
 (0)