You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Globalization/CultureInfo.xml
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1279,21 +1279,19 @@ You might choose to override some of the values associated with the current cult
1279
1279
<formattype="text/markdown"><![CDATA[
1280
1280
1281
1281
## Remarks
1282
-
In the .NET Framework 4 and previous versions, by default, the UI culture of all threads is set to the Windows system culture. For applications whose current UI culture differs from the default system culture, this behavior is often undesirable. In the .NET Framework 4.5, the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property lets you define the default UI culture of all threads in an application domain.
1282
+
In the .NET Framework 4 and previous versions, by default, the UI culture of all threads is set to the Windows system culture. For applications whose current UI culture differs from the default system culture, this behavior is often undesirable. In .NET Framework 4.5+, the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property lets you define the default UI culture of all threads in an application domain.
1283
1283
1284
1284
> [!IMPORTANT]
1285
1285
> If you have not explicitly set the UI culture of any existing threads executing in an application domain, setting the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property also changes the culture of these threads. However, if these threads execute in another application domain, their culture is defined by the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property in that application domain or, if no default value is defined, by the default system culture. Because of this, we recommend that you always explicitly set the culture of your main application thread and do not rely on the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property to define the culture of the main application thread.
1286
1286
1287
1287
Unless it is set explicitly, the value of the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property is `null`, and the current culture of all threads in an application domain that have not been assigned an explicit culture is defined by the default Windows system culture.
1288
1288
1289
-
For more information about cultures, threads, and application domains, see the "Culture and threads" and "Culture and application domains" sections in the <xref:System.Globalization.CultureInfo> reference page.
1290
-
1291
-
1289
+
For more information about cultures, threads, and application domains, see the "Culture and threads" and "Culture and application domains" sections of <xref:System.Globalization.CultureInfo>.
1292
1290
1293
1291
## Examples
1294
-
The following example illustrates the default behavior of the .NET Framework in defining the current culture of a new thread. It uses English and Russian language resources. The following text file named GreetingStrings.txt contains the English language resources:
1292
+
The following example illustrates the default behavior of .NET in defining the current culture of a new thread. It uses English and Russian language resources. The following text file named GreetingStrings.txt contains the English language resources:
1295
1293
1296
-
```
1294
+
```txt
1297
1295
greeting =Hello again!
1298
1296
newGreeting=Hello!
1299
1297
```
@@ -1306,7 +1304,7 @@ resgen greetingstrings.txt
1306
1304
1307
1305
The following text file named GreetingStrings.ru-RU.txt contains the Russian language resources:
Copy file name to clipboardExpand all lines: xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml
+12-23Lines changed: 12 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -896,38 +896,27 @@
896
896
## Remarks
897
897
Use this method to create a memory-mapped file that is not persisted (that is, not associated with a file on disk), which you can use to share data between processes.
898
898
899
-
900
-
901
899
## Examples
902
900
The following example is composed of three separate processes (console applications) that write `Boolean` values to a memory-mapped file. The following sequence of actions occur:
903
901
904
-
1. Process A creates the memory-mapped file and writes a value to it.
905
-
906
-
2. Process B opens the memory-mapped file and writes a value to it.
907
-
908
-
3. Process C opens the memory-mapped file and writes a value to it.
909
-
910
-
4. Process A reads and displays the values from the memory-mapped file.
911
-
912
-
5. After Process A is finished with the memory-mapped file, the file is immediately reclaimed by garbage collection.
902
+
1. Process A creates the memory-mapped file and writes a value to it.
903
+
2. Process B opens the memory-mapped file and writes a value to it.
904
+
3. Process C opens the memory-mapped file and writes a value to it.
905
+
4. Process A reads and displays the values from the memory-mapped file.
906
+
5. After Process A is finished with the memory-mapped file, the file is immediately reclaimed by garbage collection.
913
907
914
908
To run this example, do the following:
915
909
916
-
1. Compile the applications and open three Command windows.
917
-
918
-
2. In the first Command window, run Process A.
919
-
920
-
3. In the second Command window, run Process B.
921
-
922
-
4. Return to Process A and press ENTER.
923
-
924
-
5. In the third Command window, run Process C.
925
-
926
-
6. Return to Process A and press ENTER.
910
+
1. Compile the applications and open three Command windows.
Copy file name to clipboardExpand all lines: xml/System.IO/Directory.xml
+24-28Lines changed: 24 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -983,12 +983,13 @@ An I/O error occurred.</exception>
983
983
<formattype="text/markdown"><![CDATA[
984
984
985
985
## 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`.
987
988
988
-
|Wildcard specifier|Matches|
989
-
|------------------------|-------------|
990
-
|\* (asterisk)|Zero or more characters in that position.|
991
-
|? (question mark)|Exactly one character in that position.|
|\* (asterisk) | Zero or more characters in that position.|
992
+
|? (question mark) | Exactly one character in that position.|
992
993
993
994
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".
994
995
@@ -1009,8 +1010,6 @@ An I/O error occurred.</exception>
1009
1010
<paramrefname="searchPattern" /> does not contain a valid pattern.</exception>
1010
1011
<exceptioncref="T:System.ArgumentNullException">
1011
1012
<paramrefname="path" /> or <paramrefname="searchPattern" /> is <seelangword="null" />.</exception>
<paramrefname="path" /> is invalid, such as referring to an unmapped drive.</exception>
1404
1401
<exceptioncref="T:System.IO.IOException">
@@ -1740,12 +1737,13 @@ The returned collection is not cached. Each call to the <xref:System.Collections
1740
1737
<formattype="text/markdown"><![CDATA[
1741
1738
1742
1739
## 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`.
1744
1742
1745
-
|Wildcard specifier|Matches|
1746
-
|------------------------|-------------|
1747
-
|\* (asterisk)|Zero or more characters in that position.|
1748
-
|? (question mark)|Exactly one character in that position.|
|\* (asterisk) | Zero or more characters in that position.|
1746
+
|? (question mark) | Exactly one character in that position.|
1749
1747
1750
1748
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".
1751
1749
@@ -1778,8 +1776,6 @@ The returned collection is not cached. Each call to the <xref:System.Collections
1778
1776
-or-
1779
1777
1780
1778
<paramrefname="searchPattern" /> is <seelangword="null" />.</exception>
<paramrefname="path" /> is invalid, such as referring to an unmapped drive.</exception>
1785
1781
<exceptioncref="T:System.IO.IOException">
@@ -2634,10 +2630,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections
2634
2630
2635
2631
`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`.
2636
2632
2637
-
|Wildcard specifier|Matches|
2638
-
|------------------------|-------------|
2639
-
|\* (asterisk)|Zero or more characters in that position.|
2640
-
|? (question mark)|Exactly one character in that position.|
|\* (asterisk) | Zero or more characters in that position.|
2636
+
|? (question mark) | Exactly one character in that position.|
2641
2637
2642
2638
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".
2643
2639
@@ -3125,10 +3121,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections
3125
3121
3126
3122
`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`.
3127
3123
3128
-
|Wildcard specifier|Matches|
3129
-
|------------------------|-------------|
3130
-
|\* (asterisk)|Zero or more characters in that position.|
3131
-
|? (question mark)|Exactly one character in that position.|
|\* (asterisk) | Zero or more characters in that position.|
3127
+
|? (question mark) | Exactly one character in that position.|
3132
3128
3133
3129
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".
3134
3130
@@ -3536,10 +3532,10 @@ The returned collection is not cached. Each call to the <xref:System.Collections
3536
3532
3537
3533
`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`.
3538
3534
3539
-
|Wildcard specifier|Matches|
3540
-
|------------------------|-------------|
3541
-
|\* (asterisk)|Zero or more characters in that position.|
3542
-
|? (question mark)|Exactly one character in that position.|
|\* (asterisk) | Zero or more characters in that position.|
3538
+
|? (question mark) | Exactly one character in that position.|
3543
3539
3544
3540
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".
Copy file name to clipboardExpand all lines: xml/System.Web.Caching/SqlCacheDependency.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@
145
145
146
146
The database name passed to the `database` parameter must be defined in the application's Web.config file. For example, the following Web.config file defines a database named pubs for <xref:System.Web.Caching.SqlCacheDependency> change notifications.
Copy file name to clipboardExpand all lines: xml/System.Web.Compilation/RouteUrlExpressionBuilder.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
## Examples
37
37
The following example shows how to create markup that generates a hyperlink with a URL that is formatted for a route. The route is defined by using `http://www.contoso.com/search/{searchterm}` as the URL pattern.
If the URL parameters provided to the `RouteUrl` expression are not sufficient to uniquely identify a route, you must include the route name. For example, if a Web application has two routes with `searchterm` as the sole URL parameter, the routes would have to be defined by using route names, and the hyperlink markup would resemble the following example:
Copy file name to clipboardExpand all lines: xml/System.Web.Compilation/RouteValueExpressionBuilder.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
## Examples
37
37
The following example shows how to use markup to display the value of the URL parameter `searchterm`. The route is defined by using `http://www.contoso.com/search/{searchterm}` as the URL pattern.
Copy file name to clipboardExpand all lines: xml/System.Web.Configuration/AuthorizationSection.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@
35
35
> [!NOTE]
36
36
> If you use the `credentials` section, be sure to follow the guidelines explained at [ASP.NET Authentication](https://learn.microsoft.com/previous-versions/aspnet/eeyk640h(v=vs.100)). For scalability and better security capability, it is recommended that you use an external database to store the users' credentials. For more information about building secure ASP.NET applications, see [Securing Your ASP.NET Application](https://learn.microsoft.com/archive/msdn-magazine/2012/january/asp-net-security-securing-your-asp-net-applications) and [Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication](https://learn.microsoft.com/previous-versions/msp-n-p/ff649357(v=pandp.10)).
0 commit comments