Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 24 additions & 28 deletions xml/System.IO/Directory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -983,12 +983,13 @@ An I/O error occurred.</exception>
<format type="text/markdown"><![CDATA[

## Remarks
`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`.

`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`.

|Wildcard specifier|Matches|
|------------------------|-------------|
|\* (asterisk)|Zero or more characters in that position.|
|? (question mark)|Exactly one character in that position.|
| Wildcard specifier | Matches |
|--------------------|-------------------------------------------|
| \* (asterisk) | Zero or more characters in that position. |
| ? (question mark) | Exactly one character in that position. |

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".

Expand All @@ -1009,8 +1010,6 @@ An I/O error occurred.</exception>
<paramref name="searchPattern" /> does not contain a valid pattern.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="path" /> or <paramref name="searchPattern" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="searchOption" /> is not a valid <see cref="T:System.IO.SearchOption" /> value.</exception>
<exception cref="T:System.IO.DirectoryNotFoundException">
<paramref name="path" /> is invalid, such as referring to an unmapped drive.</exception>
<exception cref="T:System.IO.IOException">
Expand Down Expand Up @@ -1397,8 +1396,6 @@ The returned collection is not cached. Each call to the <xref:System.Collections
-or-

<paramref name="searchPattern" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="enumerationOptions" /> is not a valid <see cref="T:System.IO.EnumerationOptions" /> value.</exception>
<exception cref="T:System.IO.DirectoryNotFoundException">
<paramref name="path" /> is invalid, such as referring to an unmapped drive.</exception>
<exception cref="T:System.IO.IOException">
Expand Down Expand Up @@ -1740,12 +1737,13 @@ The returned collection is not cached. Each call to the <xref:System.Collections
<format type="text/markdown"><![CDATA[

## Remarks
`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`.

`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`.

|Wildcard specifier|Matches|
|------------------------|-------------|
|\* (asterisk)|Zero or more characters in that position.|
|? (question mark)|Exactly one character in that position.|
| Wildcard specifier | Matches |
|--------------------|-------------------------------------------|
| \* (asterisk) | Zero or more characters in that position. |
| ? (question mark) | Exactly one character in that position. |

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".

Expand Down Expand Up @@ -1778,8 +1776,6 @@ The returned collection is not cached. Each call to the <xref:System.Collections
-or-

<paramref name="searchPattern" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="enumerationOptions" /> is not a valid <see cref="T:System.IO.EnumerationOptions" /> value.</exception>
<exception cref="T:System.IO.DirectoryNotFoundException">
<paramref name="path" /> is invalid, such as referring to an unmapped drive.</exception>
<exception cref="T:System.IO.IOException">
Expand Down Expand Up @@ -2634,10 +2630,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections

`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`.

|Wildcard specifier|Matches|
|------------------------|-------------|
|\* (asterisk)|Zero or more characters in that position.|
|? (question mark)|Exactly one character in that position.|
| Wildcard specifier | Matches |
|--------------------|-------------------------------------------|
| \* (asterisk) | Zero or more characters in that position. |
| ? (question mark) | Exactly one character in that position. |

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".

Expand Down Expand Up @@ -3125,10 +3121,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections

`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`.

|Wildcard specifier|Matches|
|------------------------|-------------|
|\* (asterisk)|Zero or more characters in that position.|
|? (question mark)|Exactly one character in that position.|
| Wildcard specifier | Matches |
|--------------------|-------------------------------------------|
| \* (asterisk) | Zero or more characters in that position. |
| ? (question mark) | Exactly one character in that position. |

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".

Expand Down Expand Up @@ -3536,10 +3532,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections

`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`.

|Wildcard specifier|Matches|
|------------------------|-------------|
|\* (asterisk)|Zero or more characters in that position.|
|? (question mark)|Exactly one character in that position.|
| Wildcard specifier | Matches |
|--------------------|-------------------------------------------|
| \* (asterisk) | Zero or more characters in that position. |
| ? (question mark) | Exactly one character in that position. |

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".

Expand Down
Loading