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.Threading/WaitHandle.xml
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -658,7 +658,7 @@ This operation is not guaranteed to be atomic. After the current thread signals
658
658
659
659
If `millisecondsTimeout` is zero, the method does not block. It tests the state of the `toWaitOn` and returns immediately.
660
660
661
-
[!INCLUDE [Exit the context](~/includes/remarks/System.Threading/WaitHandle/exit-context.md)]
661
+
[!INCLUDE [Exit the context](~/includes/waithandle-exit-context.md)]
662
662
663
663
]]></format>
664
664
</remarks>
@@ -735,7 +735,7 @@ If `millisecondsTimeout` is zero, the method does not block. It tests the state
735
735
736
736
If `timeout` is zero, the method does not block. It tests the state of the `toWaitOn` and returns immediately.
737
737
738
-
[!INCLUDE [Exit the context](~/includes/remarks/System.Threading/WaitHandle/exit-context.md)]
738
+
[!INCLUDE [Exit the context](~/includes/waithandle-exit-context.md)]
739
739
740
740
]]></format>
741
741
</remarks>
@@ -1088,7 +1088,7 @@ The <xref:System.Threading.WaitHandle.WaitAll*> method returns when the wait ter
1088
1088
> [!NOTE]
1089
1089
> The <xref:System.Threading.WaitHandle.WaitAll*> method is not supported on threads in <xref:System.Threading.ApartmentState.STA> state.
1090
1090
1091
-
[!INCLUDE [Exit the context](~/includes/remarks/System.Threading/WaitHandle/exit-context.md)]
1091
+
[!INCLUDE [Exit the context](~/includes/waithandle-exit-context.md)]
1092
1092
1093
1093
## Examples
1094
1094
The following code example shows how to use the thread pool to asynchronously create and write to a group of files. Each write operation is queued as a work item and signals when it is finished. The main thread waits for all the items to signal and then exits.
@@ -1184,7 +1184,7 @@ The <xref:System.Threading.WaitHandle.WaitAll*> method returns when the wait ter
1184
1184
1185
1185
The maximum value for `timeout` is <xref:System.Int32.MaxValue?displayProperty=nameWithType>.
1186
1186
1187
-
[!INCLUDE [Exit the context](~/includes/remarks/System.Threading/WaitHandle/exit-context.md)]
1187
+
[!INCLUDE [Exit the context](~/includes/waithandle-exit-context.md)]
1188
1188
1189
1189
## Examples
1190
1190
The following code example shows how to use the thread pool to asynchronously create and write to a group of files. Each write operation is queued as a work item and signals when it is finished. The main thread waits for all the items to signal and then exits.
@@ -1527,7 +1527,7 @@ This method returns when the wait terminates, either when any of the handles are
1527
1527
1528
1528
The maximum number of the wait handles is 64, and 63 if the current thread is in <xref:System.Threading.ApartmentState.STA> state.
1529
1529
1530
-
[!INCLUDE [Exit the context](~/includes/remarks/System.Threading/WaitHandle/exit-context.md)]
1530
+
[!INCLUDE [Exit the context](~/includes/waithandle-exit-context.md)]
1531
1531
1532
1532
## Examples
1533
1533
The following code example demonstrates how to use the thread pool to simultaneously search for a file on multiple disks. For space considerations, only the root directory of each disk is searched.
@@ -1614,7 +1614,7 @@ The maximum number of the wait handles is 64, and 63 if the current thread is in
1614
1614
1615
1615
The maximum value for `timeout` is <xref:System.Int32.MaxValue?displayProperty=nameWithType>.
1616
1616
1617
-
[!INCLUDE [Exit the context](~/includes/remarks/System.Threading/WaitHandle/exit-context.md)]
1617
+
[!INCLUDE [Exit the context](~/includes/waithandle-exit-context.md)]
1618
1618
1619
1619
## Examples
1620
1620
The following code example demonstrates how to use the thread pool to simultaneously search for a file on multiple disks. For space considerations, only the root directory of each disk is searched.
@@ -1926,7 +1926,7 @@ The caller of this method blocks until the current instance receives a signal or
1926
1926
1927
1927
Override this method to customize the behavior of derived classes.
1928
1928
1929
-
[!INCLUDE [Exit the context](~/includes/remarks/System.Threading/WaitHandle/exit-context.md)]
1929
+
[!INCLUDE [Exit the context](~/includes/waithandle-exit-context.md)]
1930
1930
1931
1931
## Examples
1932
1932
The following example shows how the <xref:System.Threading.WaitHandle.WaitOne(System.Int32,System.Boolean)> method overload behaves when it is called within a synchronization domain. First, a thread waits with `exitContext` set to `false` and blocks until the wait timeout expires. A second thread executes after the first thread terminates and waits with `exitContext` set to `true`. The call to signal the wait handle for this second thread is not blocked, and the thread completes before the wait timeout.
@@ -2005,7 +2005,7 @@ Override this method to customize the behavior of derived classes.
2005
2005
2006
2006
The maximum value for `timeout` is <xref:System.Int32.MaxValue?displayProperty=nameWithType>.
2007
2007
2008
-
[!INCLUDE [Exit the context](~/includes/remarks/System.Threading/WaitHandle/exit-context.md)]
2008
+
[!INCLUDE [Exit the context](~/includes/waithandle-exit-context.md)]
2009
2009
2010
2010
## Examples
2011
2011
The following code example shows how to use a wait handle to keep a process from terminating while it waits for a background thread to finish executing.
Copy file name to clipboardExpand all lines: xml/System/String.xml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6335,7 +6335,7 @@ The index of a format item is less than zero, or greater than or equal to the le
6335
6335
6336
6336
This method uses the [composite formatting feature](/dotnet/standard/base-types/composite-formatting) to convert the value of an expression to its string representation and to embed that representation in a string. In performing the conversion, the method uses culture-sensitive formatting or a custom formatter. The method converts `arg0` to its string representation by calling its **ToString(IFormatProvider)** method or, if the object's corresponding format item includes a format string, by calling its **ToString(String,IFormatProvider)** method. If these methods don't exist, it calls the object's parameterless **ToString** method.
@@ -6432,7 +6432,7 @@ The index of a format item is not zero.</exception>
6432
6432
6433
6433
This method uses the [composite formatting feature](/dotnet/standard/base-types/composite-formatting) to convert four or more expressions to their string representations and to embed those representations in a string. In performing the conversion, the method uses culture-sensitive formatting or a custom formatter. The method converts each <xref:System.Object> argument to its string representation by calling its **ToString(IFormatProvider)** method or, if the object's corresponding format item includes a format string, by calling its **ToString(String,IFormatProvider)** method. If these methods don't exist, it calls the object's parameterless **ToString** method.
@@ -6833,7 +6833,7 @@ The index of a format item is not zero or one.</exception>
6833
6833
6834
6834
This method uses the [composite formatting feature](/dotnet/standard/base-types/composite-formatting) to convert two expressions to their string representations and to embed those representations in a string. In performing the conversion, the method uses culture-sensitive formatting or a custom formatter. The method converts each <xref:System.Object> argument to its string representation by calling its **ToString(IFormatProvider)** method or, if the object's corresponding format item includes a format string, by calling its **ToString(String,IFormatProvider)** method. If these methods don't exist, it calls the object's parameterless **ToString** method.
@@ -7025,7 +7025,7 @@ The index of a format item is less than zero, or greater than two.</exception>
7025
7025
7026
7026
This method uses the [composite formatting feature](/dotnet/standard/base-types/composite-formatting) to convert three expressions to their string representations and to embed those representations in a string. In performing the conversion, the method uses culture-sensitive formatting or a custom formatter. The method converts each <xref:System.Object> argument to its string representation by calling its **ToString(IFormatProvider)** method or, if the object's corresponding format item includes a format string, by calling its **ToString(String,IFormatProvider)** method. If these methods don't exist, it calls the object's parameterless **ToString** method.
0 commit comments