1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780
|
<?xml version="1.0" encoding="utf-8"?>
<Type Name="Thread" FullName="System.Threading.Thread" FullNameSP="System_Threading_Thread" Maintainer="ecma">
<TypeSignature Language="ILASM" Value=".class public sealed Thread extends System.Object" />
<TypeSignature Language="C#" Value="public sealed class Thread : System.Runtime.ConstrainedExecution.CriticalFinalizerObject, System.Runtime.InteropServices._Thread" />
<TypeSignature Language="ILAsm" Value=".class public sequential ansi sealed beforefieldinit Thread extends System.Runtime.ConstrainedExecution.CriticalFinalizerObject implements class System.Runtime.InteropServices._Thread" />
<MemberOfLibrary>BCL</MemberOfLibrary>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadingSafetyStatement>All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.</ThreadingSafetyStatement>
<Base>
<BaseTypeName>System.Runtime.ConstrainedExecution.CriticalFinalizerObject</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.Runtime.InteropServices._Thread</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Runtime.InteropServices.ComDefaultInterface(typeof(System.Runtime.InteropServices._Thread))</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A process can create one or more threads to execute a portion of the program code associated with the process. Use a <see cref="T:System.Threading.ThreadStart" /> delegate or the <see cref="T:System.Threading.ParameterizedThreadStart" /> delegate to specify the program code executed by a thread. The <see cref="T:System.Threading.ParameterizedThreadStart" /> delegate allows you to pass data to the thread procedure.</para>
<para>For the duration of its existence, a thread is always in one or more of the states defined by <see cref="T:System.Threading.ThreadState" />. A scheduling priority level, as defined by <see cref="T:System.Threading.ThreadPriority" />, can be requested for a thread, but is not guaranteed to be honored by the operating system.</para>
<para>
<see cref="M:System.Object.GetHashCode" /> provides identification for managed threads. For the lifetime of your thread, it will not collide with the value from any other thread, regardless of the application domain from which you obtain the value.</para>
<block subset="none" type="note">
<para>An operating-system ThreadId has no fixed relationship to a managed thread, because an unmanaged host can control the relationship between managed and unmanaged threads. Specifically, a sophisticated host can use the CLR Hosting API to schedule many managed threads against the same operating system thread, or to move a managed thread between different operating system threads.</para>
</block>
<para>It is not necessary to retain a reference to a <see cref="T:System.Threading.Thread" /> object once you have started the thread. The thread continues to execute until the thread procedure is complete.</para>
<block subset="none" type="note">
<para>Beginning with the net_v40_long, the behavior of some thread constructors is changed: Only fully trusted code can set the maximum stack size to a value that is greater than the default stack size (1 megabyte). If a larger value is specified when code is running with partial trust, the larger value is ignored and the default stack size is used. No exception is thrown. Code at any trust level can set the maximum stack size to a value that is less than the default stack size.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Creates and controls a thread, sets its priority, and gets its status. </para>
</summary>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Thread (System.Threading.ParameterizedThreadStart start);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Threading.ParameterizedThreadStart start) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="start" Type="System.Threading.ParameterizedThreadStart" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A thread does not begin executing when it is created. To schedule the thread for execution, call the <see cref="M:System.Threading.Thread.Start" /> method. To pass a data object to the thread, use the <see cref="M:System.Threading.Thread.Start(System.Object)" /> method overload.</para>
<block subset="none" type="note">
<para>Visual Basic users can omit the <see cref="T:System.Threading.ThreadStart" /> constructor when creating a thread. Use the AddressOf operator when passing your method, for example Dim t As New Thread(AddressOf ThreadProc). Visual Basic automatically calls the <see cref="T:System.Threading.ThreadStart" /> constructor.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Threading.Thread" /> class, specifying a delegate that allows an object to be passed to the thread when the thread is started.</para>
</summary>
<param name="start">
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Threading.ParameterizedThreadStart" /> delegate that represents the methods to be invoked when this thread begins executing.</param>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(class System.Threading.ThreadStart start)" />
<MemberSignature Language="C#" Value="public Thread (System.Threading.ThreadStart start);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Threading.ThreadStart start) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="start" Type="System.Threading.ThreadStart" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentNullException">
<paramref name="start " />is <see langword="null" /> . </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A thread does not begin executing when it is created. To schedule the thread for execution, call the <see cref="M:System.Threading.Thread.Start" /> method.</para>
<block subset="none" type="note">
<para>Visual Basic users can omit the <see cref="T:System.Threading.ThreadStart" /> constructor when creating a thread. Use the AddressOf operator when passing your method for example Dim t As New Thread(AddressOf ThreadProc). Visual Basic automatically calls the <see cref="T:System.Threading.ThreadStart" /> constructor.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Threading.Thread" /> class.</para>
</summary>
<param name="start">
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Threading.ThreadStart" /> delegate that represents the methods to be invoked when this thread begins executing. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Thread (System.Threading.ParameterizedThreadStart start, int maxStackSize);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Threading.ParameterizedThreadStart start, int32 maxStackSize) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="start" Type="System.Threading.ParameterizedThreadStart" />
<Parameter Name="maxStackSize" Type="System.Int32" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Avoid using this constructor overload. The default stack size used by the <see cref="M:System.Threading.Thread.#ctor(System.Threading.ParameterizedThreadStart)" /> constructor overload is the recommended stack size for threads. If a thread has memory problems, the most likely cause is programming error, such as infinite recursion. </para>
<block subset="none" type="note">
<para>Beginning with the net_v40_long, only fully trusted code can set <paramref name="maxStackSize" /> to a value that is greater than the default stack size (1 megabyte). If a larger value is specified for <paramref name="maxStackSize" /> when code is running with partial trust, <paramref name="maxStackSize" /> is ignored and the default stack size is used. No exception is thrown. Code at any trust level can set <paramref name="maxStackSize" /> to a value that is less than the default stack size.</para>
</block>
<block subset="none" type="note">
<para>If you are developing a fully trusted library that will be used by partially trusted code, and you need to start a thread that requires a large stack, you must assert full trust before creating the thread, or the default stack size will be used. Do not do this unless you fully control the code that runs on the thread.</para>
</block>
<para>If <paramref name="maxStackSize" /> is less than the minimum stack size, the minimum stack size is used. If <paramref name="maxStackSize" /> is not a multiple of the page size, it is rounded to the next larger multiple of the page size. For example, if you are using the .NET Framework version 2.0 on Microsoft Windows Vista, 256KB (262144 bytes) is the minimum stack size, and the page size is 64KB (65536 bytes).</para>
<block subset="none" type="note">
<para>On versions of Microsoft Windows prior to Windows XP and Windows Server 2003, <paramref name="maxStackSize" /> is ignored, and the stack size specified in the executable header is used.</para>
</block>
<para>If you specify a very small stack size, you might need to disable stack-overflow probing. When the stack is severely constrained, the probing can itself cause a stack overflow. To disable stack overflow probing, add the following to your application configuration file.</para>
<code><configuration>
<runtime>
<disableStackOverflowProbing enabled="true"/>
</runtime>
</configuration></code>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Threading.Thread" /> class, specifying a delegate that allows an object to be passed to the thread when the thread is started and specifying the maximum stack size for the thread.</para>
</summary>
<param name="start">
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Threading.ParameterizedThreadStart" /> delegate that represents the methods to be invoked when this thread begins executing.</param>
<param name="maxStackSize">
<attribution license="cc4" from="Microsoft" modified="false" />The maximum stack size, in bytes, to be used by the thread, or 0 to use the default maximum stack size specified in the header for the executable.</param>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Thread (System.Threading.ThreadStart start, int maxStackSize);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Threading.ThreadStart start, int32 maxStackSize) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="start" Type="System.Threading.ThreadStart" />
<Parameter Name="maxStackSize" Type="System.Int32" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Avoid using this constructor overload. The default stack size used by the <see cref="M:System.Threading.Thread.#ctor(System.Threading.ThreadStart)" /> constructor overload is the recommended stack size for threads. If a thread has memory problems, the most likely cause is programming error, such as infinite recursion. </para>
<block subset="none" type="note">
<para>Beginning with the net_v40_long, only fully trusted code can set <paramref name="maxStackSize" /> to a value that is greater than the default stack size (1 megabyte). If a larger value is specified for <paramref name="maxStackSize" /> when code is running with partial trust, <paramref name="maxStackSize" /> is ignored and the default stack size is used. No exception is thrown. Code at any trust level can set <paramref name="maxStackSize" /> to a value that is less than the default stack size.</para>
</block>
<block subset="none" type="note">
<para>If you are developing a fully trusted library that will be used by partially trusted code, and you need to start a thread that requires a large stack, you must assert full trust before creating the thread, or the default stack size will be used. Do not do this unless you fully control the code that runs on the thread.</para>
</block>
<para>If <paramref name="maxStackSize" /> is less than the minimum stack size, the minimum stack size is used. If <paramref name="maxStackSize" /> is not a multiple of the page size, it is rounded to the next larger multiple of the page size. For example, if you are using the .NET Framework version 2.0 on Microsoft Windows Vista, 256KB (262144 bytes) is the minimum stack size, and the page size is 64KB (65536 bytes).</para>
<block subset="none" type="note">
<para>On versions of Microsoft Windows prior to Windows XP and Windows Server 2003, <paramref name="maxStackSize" /> is ignored, and the stack size specified in the executable header is used.</para>
</block>
<para>If you specify a very small stack size, you might need to disable stack-overflow probing. When the stack is severely constrained, the probing can itself cause a stack overflow. To disable stack overflow probing, add the following to your application configuration file.</para>
<code><configuration>
<runtime>
<disableStackOverflowProbing enabled="true"/>
</runtime>
</configuration></code>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Threading.Thread" /> class, specifying the maximum stack size for the thread.</para>
</summary>
<param name="start">
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Threading.ThreadStart" /> delegate that represents the methods to be invoked when this thread begins executing.</param>
<param name="maxStackSize">
<attribution license="cc4" from="Microsoft" modified="false" />The maximum stack size, in bytes, to be used by the thread, or 0 to use the default maximum stack size specified in the header for the executable.</param>
</Docs>
</Member>
<Member MemberName="Abort">
<MemberSignature Language="ILASM" Value=".method public hidebysig instance void Abort()" />
<MemberSignature Language="C#" Value="public void Abort ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Abort() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<exception cref="T:System.Security.SecurityException">
<SPAN>
<SPAN>Caller does not have <see cref="F:System.Security.Permissions.SecurityPermissionFlag.ControlThread" /> security permission for the thread to be aborted.</SPAN>
</SPAN>
</exception>
<permission cref="!:System.Security.SecurityPermission">Requires permission to control the thread to be aborted. See <see cref="F:System.Security.Permissions.SecurityPermissionFlag.ControlThread" />.</permission>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>When this method is invoked on a thread, the system throws a <see cref="T:System.Threading.ThreadAbortException" /> in the thread to abort it. ThreadAbortException is a special exception that can be caught by application code, but is re-thrown at the end of the catch block unless <see cref="M:System.Threading.Thread.ResetAbort" /> is called. ResetAbort cancels the request to abort, and prevents the ThreadAbortException from terminating the thread. Unexecuted finally blocks are executed before the thread is aborted.</para>
<block subset="none" type="note">
<para>When a thread calls Abort on itself, the effect is similar to throwing an exception; the <see cref="T:System.Threading.ThreadAbortException" /> happens immediately, and the result is predictable. However, if one thread calls Abort on another thread, the abort interrupts whatever code is running. There is also a chance that a static constructor could be aborted. In rare cases, this might prevent instances of that class from being created in that application domain. In the .NET Framework versions 1.0 and 1.1, there is a chance the thread could abort while a finally block is running, in which case the finally block is aborted.</para>
</block>
<para>The thread is not guaranteed to abort immediately, or at all. This situation can occur if a thread does an unbounded amount of computation in the finally blocks that are called as part of the abort procedure, thereby indefinitely delaying the abort. To wait until a thread has aborted, you can call the <see cref="M:System.Threading.Thread.Join" /> method on the thread after calling the <see cref="M:System.Threading.Thread.Abort" /> method, but there is no guarantee the wait will end.</para>
<block subset="none" type="note">
<para>The thread that calls <see cref="M:System.Threading.Thread.Abort" /> might block if the thread that is being aborted is in a protected region of code, such as a catch block, finally block, or constrained execution region. If the thread that calls <see cref="M:System.Threading.Thread.Abort" /> holds a lock that the aborted thread requires, a deadlock can occur.</para>
</block>
<para>If Abort is called on a thread that has not been started, the thread will abort when <see cref="M:System.Threading.Thread.Start" /> is called. If Abort is called on a thread that is blocked or is sleeping, the thread is interrupted and then aborted. </para>
<para>If Abort is called on a thread that has been suspended, a <see cref="T:System.Threading.ThreadStateException" /> is thrown in the thread that called <see cref="Overload:System.Threading.Thread.Abort" />, and <see cref="F:System.Threading.ThreadState.AbortRequested" /> is added to the <see cref="P:System.Threading.Thread.ThreadState" /> property of the thread being aborted. A <see cref="T:System.Threading.ThreadAbortException" /> is not thrown in the suspended thread until <see cref="M:System.Threading.Thread.Resume" /> is called.</para>
<para>If Abort is called on a managed thread while it is executing unmanaged code, a ThreadAbortException is not thrown until the thread returns to managed code.</para>
<para>If two calls to Abort come at the same time, it is possible for one call to set the state information and the other call to execute the Abort. However, an application cannot detect this situation.</para>
<para>After Abort is invoked on a thread, the state of the thread includes <see cref="F:System.Threading.ThreadState.AbortRequested" />. After the thread has terminated as a result of a successful call to Abort, the state of the thread is changed to <see cref="F:System.Threading.ThreadState.Stopped" />. With sufficient permissions, a thread that is the target of an Abort can cancel the abort using the ResetAbort method. For an example that demonstrates calling the ResetAbort method, see the ThreadAbortException class.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Raises a <see cref="T:System.Threading.ThreadAbortException" /> in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Abort">
<MemberSignature Language="ILASM" Value=".method public hidebysig instance void Abort(object stateInfo)" />
<MemberSignature Language="C#" Value="public void Abort (object stateInfo);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Abort(object stateInfo) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="stateInfo" Type="System.Object" />
</Parameters>
<Docs>
<exception cref="T:System.Security.SecurityException">
<SPAN>
<SPAN>Caller does not have <see cref="F:System.Security.Permissions.SecurityPermissionFlag.ControlThread" /> security permission for this thread.</SPAN>
</SPAN>
</exception>
<permission cref="!:System.Security.SecurityPermission">Requires permission to control the thread to be aborted. See <see cref="F:System.Security.Permissions.SecurityPermissionFlag.ControlThread" />.</permission>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>When this method is invoked on a thread, the system throws a <see cref="T:System.Threading.ThreadAbortException" /> in the thread to abort it. ThreadAbortException is a special exception that can be caught by application code, but is re-thrown at the end of the catch block unless <see cref="M:System.Threading.Thread.ResetAbort" /> is called. ResetAbort cancels the request to abort, and prevents the ThreadAbortException from terminating the thread. Unexecuted finally blocks are executed before the thread is aborted.</para>
<block subset="none" type="note">
<para>When a thread calls Abort on itself, the effect is similar to throwing an exception; the <see cref="T:System.Threading.ThreadAbortException" /> happens immediately, and the result is predictable. However, if one thread calls Abort on another thread, the abort interrupts whatever code is running. There is a chance that a static constructor could be aborted. In rare cases, this might prevent instances of that class from being created in that application domain. In the .NET Framework versions 1.0 and 1.1, there is a chance the thread could abort while a finally block is running, in which case the finally block is aborted.</para>
</block>
<para>The thread is not guaranteed to abort immediately, or at all. This situation can occur if a thread does an unbounded amount of computation in the finally blocks that are called as part of the abort procedure, thereby indefinitely delaying the abort. To wait until a thread has aborted, you can call the <see cref="M:System.Threading.Thread.Join" /> method on the thread after calling the <see cref="M:System.Threading.Thread.Abort(System.Object)" /> method, but there is no guarantee that the wait will end.</para>
<block subset="none" type="note">
<para>The thread that calls <see cref="M:System.Threading.Thread.Abort" /> might block if the thread that is being aborted is in a protected region of code, such as a catch block, finally block, or constrained execution region. If the thread that calls <see cref="M:System.Threading.Thread.Abort" /> holds a lock that the aborted thread requires, a deadlock can occur.</para>
</block>
<para>If Abort is called on a thread that has not been started, the thread will abort when <see cref="M:System.Threading.Thread.Start" /> is called. If Abort is called on a thread that is blocked or is sleeping, the thread is interrupted and then aborted. </para>
<para>If Abort is called on a thread that has been suspended, a <see cref="T:System.Threading.ThreadStateException" /> is thrown in the thread that called <see cref="Overload:System.Threading.Thread.Abort" />, and <see cref="F:System.Threading.ThreadState.AbortRequested" /> is added to the <see cref="P:System.Threading.Thread.ThreadState" /> property of the thread being aborted. A <see cref="T:System.Threading.ThreadAbortException" /> is not thrown in the suspended thread until <see cref="M:System.Threading.Thread.Resume" /> is called.</para>
<para>If Abort is called on a managed thread while it is executing unmanaged code, a ThreadAbortException is not thrown until the thread returns to managed code.</para>
<para>If two calls to Abort come at the same time, it is possible for one call to set the state information and the other call to execute the Abort. However, an application cannot detect this situation.</para>
<para>After Abort is invoked on a thread, the state of the thread includes <see cref="F:System.Threading.ThreadState.AbortRequested" />. After the thread has terminated as a result of a successful call to Abort, the state of the thread is changed to <see cref="F:System.Threading.ThreadState.Stopped" />. With sufficient permissions, a thread that is the target of an Abort can cancel the abort using the ResetAbort method. For an example that demonstrates calling the ResetAbort method, see the ThreadAbortException class.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Raises a <see cref="T:System.Threading.ThreadAbortException" /> in the thread on which it is invoked, to begin the process of terminating the thread while also providing exception information about the thread termination. Calling this method usually terminates the thread.</para>
</summary>
<param name="stateInfo">
<attribution license="cc4" from="Microsoft" modified="false" />An object that contains application-specific information, such as state, which can be used by the thread being aborted. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="AllocateDataSlot">
<MemberSignature Language="C#" Value="public static LocalDataStoreSlot AllocateDataSlot ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.LocalDataStoreSlot AllocateDataSlot() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.LocalDataStoreSlot</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<block subset="none" type="note">
<para>The .NET Framework provides two mechanisms for using thread local storage (TLS): thread-relative static fields (that is, fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute) and data slots. Thread-relative static fields provide much better performance than data slots, and enable compile-time type checking. For more information about using TLS, see <format type="text/html"><a href="c633a4dc-a790-4ed1-96b5-f72bd968b284">Thread Local Storage: Thread-Relative Static Fields and Data Slots</a></format>.</para>
</block>
<para>The slot is allocated on all threads.</para>
<para>Threads use a local store memory mechanism to store thread-specific data. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread can allocate a data slot in the data store, store and retrieve a data value in the slot, and free the slot for reuse after the thread expires. Data slots are unique per thread. No other thread (not even a child thread) can get that data.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Allocates an unnamed data slot on all the threads. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute instead.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The allocated named data slot on all threads.</para>
</returns>
</Docs>
</Member>
<Member MemberName="AllocateNamedDataSlot">
<MemberSignature Language="C#" Value="public static LocalDataStoreSlot AllocateNamedDataSlot (string name);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.LocalDataStoreSlot AllocateNamedDataSlot(string name) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.LocalDataStoreSlot</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<block subset="none" type="note">
<para>The .NET Framework provides two mechanisms for using thread local storage (TLS): thread-relative static fields (that is, fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute) and data slots. Thread-relative static fields provide much better performance than data slots, and enable compile-time type checking. For more information about using TLS, see <format type="text/html"><a href="c633a4dc-a790-4ed1-96b5-f72bd968b284">Thread Local Storage: Thread-Relative Static Fields and Data Slots</a></format>.</para>
</block>
<para>Threads use a local store memory mechanism to store thread-specific data. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread can allocate a data slot in the data store, store and retrieve a data value in the slot, and free the slot for reuse after the thread expires. Data slots are unique per thread. No other thread (not even a child thread) can get that data.</para>
<para>It is not necessary to use the <see cref="M:System.Threading.Thread.AllocateNamedDataSlot(System.String)" /> method to allocate a named data slot, because the <see cref="M:System.Threading.Thread.GetNamedDataSlot(System.String)" /> method allocates the slot if it has not already been allocated.</para>
<block subset="none" type="note">
<para>If the <see cref="M:System.Threading.Thread.AllocateNamedDataSlot(System.String)" /> method is used, it should be called in the main thread at program startup, because it throws an exception if a slot with the specified name has already been allocated. There is no way to test whether a slot has already been allocated.</para>
</block>
<para>Slots allocated with this method must be freed with <see cref="M:System.Threading.Thread.FreeNamedDataSlot(System.String)" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Allocates a named data slot on all threads. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute instead.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The allocated named data slot on all threads.</para>
</returns>
<param name="name">
<attribution license="cc4" from="Microsoft" modified="false" />The name of the data slot to be allocated. </param>
</Docs>
</Member>
<Member MemberName="ApartmentState">
<MemberSignature Language="C#" Value="public System.Threading.ApartmentState ApartmentState { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Threading.ApartmentState ApartmentState" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete("Deprecated in favor of GetApartmentState, SetApartmentState and TrySetApartmentState.")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Threading.ApartmentState</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>In the .NET Framework versions 1.0 and 1.1, the ApartmentState property marks a thread to indicate that it will execute in a single-threaded or multithreaded apartment. This property can be set when the thread is in the Unstarted or Running thread state; however, it can be set only once for a thread. If the property has not been set, it returns Unknown.</para>
<block subset="none" type="note">
<para>In the .NET Framework version 2.0, new threads are initialized as <see cref="F:System.Threading.ApartmentState.MTA" /> if their apartment state has not been set before they are started. The main application thread is initialized to <see cref="F:System.Threading.ApartmentState.MTA" /> by default. You can no longer set the main application thread to <see cref="F:System.Threading.ApartmentState.STA" /> by setting the <see cref="T:System.Threading.ApartmentState" /> property on the first line of code. Use the <see cref="T:System.STAThreadAttribute" /> instead.</para>
</block>
<para>In the .NET Framework version 2.0, you can specify the COM threading model for a C++ application using the <format type="text/html"><a href="4907e9ef-5031-446c-aecf-0a0b32fae1e8">/CLRTHREADATTRIBUTE (Set CLR Thread Attribute)</a></format> linker option.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the apartment state of this thread.</para>
</summary>
</Docs>
</Member>
<Member MemberName="BeginCriticalRegion">
<MemberSignature Language="C#" Value="public static void BeginCriticalRegion ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void BeginCriticalRegion() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Hosts of the common language runtime (CLR), such as Microsoft SQL Server 2005, can establish different policies for failures in critical and non-critical regions of code. A critical region is one in which the effects of a thread abort or an unhandled exception might not be limited to the current task. By contrast, an abort or failure in a non-critical region of code affects only the task in which the error occurs.</para>
<para>For example, consider a task that attempts to allocate memory while holding a lock. If the memory allocation fails, aborting the current task is not sufficient to ensure stability of the <see cref="T:System.AppDomain" />, because there can be other tasks in the domain waiting for the same lock. If the current task is terminated, other tasks could be deadlocked.</para>
<para>When a failure occurs in a critical region, the host might decide to unload the entire <see cref="T:System.AppDomain" /> rather than take the risk of continuing execution in a potentially unstable state. To inform the host that your code is entering a critical region, call <see cref="M:System.Threading.Thread.BeginCriticalRegion" />. Call <see cref="M:System.Threading.Thread.EndCriticalRegion" /> when execution returns to a non-critical region of code.</para>
<para>Using this method in code that runs under SQL Server 2005 requires the code to be run at the highest host protection level.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception might jeopardize other tasks in the application domain.</para>
</summary>
</Docs>
</Member>
<Member MemberName="BeginThreadAffinity">
<MemberSignature Language="C#" Value="public static void BeginThreadAffinity ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void BeginThreadAffinity() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Some hosts of the common language runtime, such as Microsoft SQL Server 2005, provide their own thread management. A host that provides its own thread management can move an executing task from one physical operating system thread to another at any time. Most tasks are not affected by this switching. However, some tasks have thread affinity - that is, they depend on the identity of a physical operating system thread. These tasks must inform the host when they execute code that should not be switched.</para>
<para>For example, if your application calls a system API to acquire an operating system lock that has thread affinity, such as a Win32 CRITICAL_SECTION, you must call <see cref="M:System.Threading.Thread.BeginThreadAffinity" /> before acquiring the lock, and <see cref="M:System.Threading.Thread.EndThreadAffinity" /> after releasing the lock. </para>
<para>Using this method in code that runs under SQL Server 2005 requires the code to be run at the highest host protection level.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Notifies a host that managed code is about to execute instructions that depend on the identity of the current physical operating system thread.</para>
</summary>
</Docs>
</Member>
<Member MemberName="CurrentContext">
<MemberSignature Language="C#" Value="public static System.Runtime.Remoting.Contexts.Context CurrentContext { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Runtime.Remoting.Contexts.Context CurrentContext" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Runtime.Remoting.Contexts.Context</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the current context in which the thread is executing.</para>
</summary>
</Docs>
</Member>
<Member MemberName="CurrentCulture">
<MemberSignature Language="C#" Value="public System.Globalization.CultureInfo CurrentCulture { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Globalization.CultureInfo CurrentCulture" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Globalization.CultureInfo</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Globalization.CultureInfo" /> object that is returned by this property, together with its associated objects, determine the default format for dates, times, numbers, currency values, the sorting order of text, casing conventions, and string comparisons. See the <see cref="T:System.Globalization.CultureInfo" /> class to learn about culture names and identifiers, the differences between invariant, neutral, and specific cultures, and the way culture information affects threads and application domains. See the <see cref="P:System.Globalization.CultureInfo.CurrentCulture" /> property to learn how a thread's default culture is determined, and how users set culture information for their computers. </para>
<para>Beginning with the net_v40_long, you can set the <see cref="P:System.Threading.Thread.CurrentCulture" /> property to a neutral culture. This is because the behavior of the <see cref="T:System.Globalization.CultureInfo" /> class has changed: When it represents a neutral culture, its property values (in particular, the <see cref="P:System.Globalization.CultureInfo.Calendar" />, <see cref="P:System.Globalization.CultureInfo.CompareInfo" />, <see cref="P:System.Globalization.CultureInfo.DateTimeFormat" />, <see cref="P:System.Globalization.CultureInfo.NumberFormat" />, and <see cref="P:System.Globalization.CultureInfo.TextInfo" /> properties) now reflect the specific culture that is associated with the neutral culture. In earlier versions of the .NET Framework, the <see cref="P:System.Threading.Thread.CurrentCulture" /> property threw a <see cref="T:System.NotSupportedException" /> exception when a neutral culture was assigned. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the culture for the current thread.</para>
</summary>
</Docs>
</Member>
<Member MemberName="CurrentPrincipal">
<MemberSignature Language="C#" Value="public static System.Security.Principal.IPrincipal CurrentPrincipal { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Security.Principal.IPrincipal CurrentPrincipal" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Security.Principal.IPrincipal</ReturnType>
</ReturnValue>
<Docs>
<value>An object implementing <see cref="T:System.Security.Principal.IPrincipal" /> which encapsulates information about the principal which the thread is executing on behalf of.</value>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the thread's current principal (for role-based security).</para>
</summary>
</Docs>
</Member>
<Member MemberName="CurrentThread">
<MemberSignature Language="ILASM" Value=".property class System.Threading.Thread CurrentThread { public hidebysig static specialname class System.Threading.Thread get_CurrentThread() }" />
<MemberSignature Language="C#" Value="public static System.Threading.Thread CurrentThread { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Threading.Thread CurrentThread" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>get: System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Threading.Thread</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<value>
<para> An instance of <see cref="T:System.Threading.Thread" /> representing the current thread.</para>
</value>
<remarks>
<para>This property is read-only.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the currently running thread.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="CurrentUICulture">
<MemberSignature Language="C#" Value="public System.Globalization.CultureInfo CurrentUICulture { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Globalization.CultureInfo CurrentUICulture" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Globalization.CultureInfo</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The UI culture specifies the resources an application needs to support user input and output, and by default is the same as the operating system culture. See the <see cref="T:System.Globalization.CultureInfo" /> class to learn about culture names and identifiers, the differences between invariant, neutral, and specific cultures, and the way culture information affects threads and application domains. See the <see cref="P:System.Globalization.CultureInfo.CurrentUICulture" /> property to learn how a thread's default UI culture is determined. </para>
<para>The <see cref="T:System.Globalization.CultureInfo" /> returned by this property can be a neutral culture. Neutral cultures should not be used with formatting methods such as <see cref="M:System.String.Format(System.IFormatProvider,System.String,System.Object[])" />, <see cref="M:System.DateTime.ToString(System.String,System.IFormatProvider)" />, and <see cref="M:System.Convert.ToString(System.Char,System.IFormatProvider)" />. Use the <see cref="M:System.Globalization.CultureInfo.CreateSpecificCulture(System.String)" /> method to get a specific culture, or use the <see cref="P:System.Threading.Thread.CurrentCulture" /> property.</para>
<block subset="none" type="note">
<para>The <see cref="M:System.Globalization.CultureInfo.CreateSpecificCulture(System.String)" /> method throws <see cref="T:System.ArgumentException" /> for the neutral cultures "zh-Hant" ("zh-CHT") and "zh-Hans" ("zh-CHS").</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run time.</para>
</summary>
</Docs>
</Member>
<Member MemberName="EndCriticalRegion">
<MemberSignature Language="C#" Value="public static void EndCriticalRegion ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void EndCriticalRegion() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Hosts of the common language runtime (CLR), such as Microsoft SQL Server 2005, can establish different policies for failures in critical and non-critical regions of code. A critical region is one in which the effects of a thread abort or an unhandled exception might not be limited to the current task. By contrast, an abort or failure in a non-critical region of code affects only the task in which the error occurs.</para>
<para>For example, consider a task that attempts to allocate memory while holding a lock. If the memory allocation fails, aborting the current task is not sufficient to ensure stability of the <see cref="T:System.AppDomain" />, because there can be other tasks in the domain waiting for the same lock. If the current task is terminated, other tasks could be deadlocked.</para>
<para>When a failure occurs in a critical region, the host might decide to unload the entire <see cref="T:System.AppDomain" /> rather than take the risk of continuing execution in a potentially unstable state. To inform the host that your code is entering a critical region, call <see cref="M:System.Threading.Thread.BeginCriticalRegion" />. Call <see cref="M:System.Threading.Thread.EndCriticalRegion" /> when execution returns to a non-critical region of code.</para>
<para>Using this method in code that runs under SQL Server 2005 requires the code to be run at the highest host protection level.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception are limited to the current task.</para>
</summary>
</Docs>
</Member>
<Member MemberName="EndThreadAffinity">
<MemberSignature Language="C#" Value="public static void EndThreadAffinity ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void EndThreadAffinity() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Some hosts of the common language runtime, such as Microsoft SQL Server 2005, provide their own thread management. A host that provides its own thread management can move an executing task from one physical operating system thread to another at any time. Most tasks are not affected by this switching. However, some tasks have thread affinity - that is, they depend on the identity of a physical operating system thread. These tasks must inform the host when they execute code that should not be switched.</para>
<para>For example, if your application calls a system API to acquire an operating system lock that has thread affinity, such as a Win32 CRITICAL_SECTION, you must call <see cref="M:System.Threading.Thread.BeginThreadAffinity" /> before acquiring the lock, and <see cref="M:System.Threading.Thread.EndThreadAffinity" /> after releasing the lock.</para>
<para>Using this method in code that runs under SQL Server 2005 requires the code to be run at the highest host protection level.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Notifies a host that managed code has finished executing instructions that depend on the identity of the current physical operating system thread.</para>
</summary>
</Docs>
</Member>
<Member MemberName="ExecutionContext">
<MemberSignature Language="C#" Value="public System.Threading.ExecutionContext ExecutionContext { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Threading.ExecutionContext ExecutionContext" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>get: System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Threading.ExecutionContext</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Threading.ExecutionContext" /> class provides a single container for all information relevant to a logical thread of execution. This includes security context, call context, synchronization context, localization context, and transaction context.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets an <see cref="T:System.Threading.ExecutionContext" /> object that contains information about the various contexts of the current thread. </para>
</summary>
</Docs>
</Member>
<Member MemberName="Finalize">
<MemberSignature Language="ILASM" Value=".method family hidebysig virtual void Finalize()" />
<MemberSignature Language="C#" Value="~Thread ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Finalize() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
<para> Releases the resources held by this instance.
</para>
</summary>
<remarks>
<para>
<block subset="none" type="note">Application code
does not call this method; it is automatically invoked during garbage
collection.</block>
</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="FreeNamedDataSlot">
<MemberSignature Language="C#" Value="public static void FreeNamedDataSlot (string name);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void FreeNamedDataSlot(string name) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<block subset="none" type="note">
<para>The .NET Framework provides two mechanisms for using thread local storage (TLS): thread-relative static fields (that is, fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute) and data slots. Thread-relative static fields provide much better performance than data slots, and enable compile-time type checking. For more information about using TLS, see <format type="text/html"><a href="c633a4dc-a790-4ed1-96b5-f72bd968b284">Thread Local Storage: Thread-Relative Static Fields and Data Slots</a></format>.</para>
</block>
<para>After any thread calls FreeNamedDataSlot, any other thread that calls <see cref="M:System.Threading.Thread.GetNamedDataSlot(System.String)" /> with the same name will allocate a new slot associated with the name. Subsequent calls to GetNamedDataSlot by any thread will return the new slot. However, any thread that still has a <see cref="T:System.LocalDataStoreSlot" /> returned by an earlier call to GetNamedDataSlot can continue to use the old slot.</para>
<para>A slot that has been associated with a name is released only when every LocalDataStoreSlot that was obtained prior to the call to FreeNamedDataSlot has been released and garbage-collected.</para>
<para>Threads use a local store memory mechanism to store thread-specific data. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread can allocate a data slot in the data store, store and retrieve a data value in the slot, and free the slot for reuse after the thread expires. Data slots are unique per thread. No other thread (not even a child thread) can get that data.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Eliminates the association between a name and a slot, for all threads in the process. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute instead.</para>
</summary>
<param name="name">
<attribution license="cc4" from="Microsoft" modified="false" />The name of the data slot to be freed. </param>
</Docs>
</Member>
<Member MemberName="GetApartmentState">
<MemberSignature Language="C#" Value="public System.Threading.ApartmentState GetApartmentState ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype System.Threading.ApartmentState GetApartmentState() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.ApartmentState</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method, along with the <see cref="M:System.Threading.Thread.SetApartmentState(System.Threading.ApartmentState)" /> method and the <see cref="M:System.Threading.Thread.TrySetApartmentState(System.Threading.ApartmentState)" /> method, replaces the <see cref="P:System.Threading.Thread.ApartmentState" /> property.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns an <see cref="T:System.Threading.ApartmentState" /> value indicating the apartment state.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>One of the <see cref="T:System.Threading.ApartmentState" /> values indicating the apartment state of the managed thread. The default is <see cref="F:System.Threading.ApartmentState.Unknown" />.</para>
</returns>
</Docs>
</Member>
<Member MemberName="GetCompressedStack">
<MemberSignature Language="C#" Value="public System.Threading.CompressedStack GetCompressedStack ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.CompressedStack GetCompressedStack() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete("see CompressedStack class")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Threading.CompressedStack</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method is no longer supported.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a <see cref="T:System.Threading.CompressedStack" /> object that can be used to capture the stack for the current thread. </para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>None. </para>
</returns>
</Docs>
</Member>
<Member MemberName="GetData">
<MemberSignature Language="C#" Value="public static object GetData (LocalDataStoreSlot slot);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig object GetData(class System.LocalDataStoreSlot slot) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="slot" Type="System.LocalDataStoreSlot" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<block subset="none" type="note">
<para>The .NET Framework provides two mechanisms for using thread local storage (TLS): thread-relative static fields (that is, fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute) and data slots. Thread-relative static fields provide much better performance than data slots, and enable compile-time type checking. For more information about using TLS, see <format type="text/html"><a href="c633a4dc-a790-4ed1-96b5-f72bd968b284">Thread Local Storage: Thread-Relative Static Fields and Data Slots</a></format>.</para>
</block>
<para>Threads use a local store memory mechanism to store thread-specific data. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread can allocate a data slot in the data store, store and retrieve a data value in the slot, and free the slot for reuse after the thread expires. Data slots are unique per thread. No other thread (not even a child thread) can get that data.</para>
<block subset="none" type="note">
<para>
<see cref="M:System.Threading.Thread.GetData(System.LocalDataStoreSlot)" /> is a Shared method that always applies to the currently executing thread, even if you call it using a variable that refers to another thread. To avoid confusion, use the class name when calling Shared methods: Dim test As Object = Thread.GetData(testSlot).</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Retrieves the value from the specified slot on the current thread, within the current thread's current domain. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute instead.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The retrieved value.</para>
</returns>
<param name="slot">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.LocalDataStoreSlot" /> from which to get the value. </param>
</Docs>
</Member>
<Member MemberName="GetDomain">
<MemberSignature Language="ILASM" Value=".method public hidebysig static class System.AppDomain GetDomain()" />
<MemberSignature Language="C#" Value="public static AppDomain GetDomain ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.AppDomain GetDomain() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.AppDomain</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the current domain in which the current thread is running.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>An <see cref="T:System.AppDomain" /> representing the current application domain of the running thread.</para>
</returns>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>RuntimeInfrastructure</ExcludedLibrary>
</Member>
<Member MemberName="GetDomainID">
<MemberSignature Language="C#" Value="public static int GetDomainID ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetDomainID() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a unique application domain identifier.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 32-bit signed integer uniquely identifying the application domain.</para>
</returns>
</Docs>
</Member>
<Member MemberName="GetHashCode">
<MemberSignature Language="C#" Value="public override int GetHashCode ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.ComVisible(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The hash code is not guaranteed to be unique. Use the <see cref="P:System.Threading.Thread.ManagedThreadId" /> property if you need a unique identifier for a managed thread.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a hash code for the current thread.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>An integer hash code value.</para>
</returns>
</Docs>
</Member>
<Member MemberName="GetNamedDataSlot">
<MemberSignature Language="C#" Value="public static LocalDataStoreSlot GetNamedDataSlot (string name);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.LocalDataStoreSlot GetNamedDataSlot(string name) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.LocalDataStoreSlot</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<block subset="none" type="note">
<para>The .NET Framework provides two mechanisms for using thread local storage (TLS): thread-relative static fields (that is, fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute) and data slots. Thread-relative static fields provide much better performance than data slots, and enable compile-time type checking. For more information about using TLS, see <format type="text/html"><a href="c633a4dc-a790-4ed1-96b5-f72bd968b284">Thread Local Storage: Thread-Relative Static Fields and Data Slots</a></format>.</para>
</block>
<para>Threads use a local store memory mechanism to store thread-specific data. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread can allocate a data slot in the data store, store and retrieve a data value in the slot, and free the slot for reuse after the thread expires. Data slots are unique per thread. No other thread (not even a child thread) can get that data.</para>
<para>If the named slot does not exist, a new slot is allocated. Named data slots are public and can be manipulated by anyone.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Looks up a named data slot. For better performance, use fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute instead.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A <see cref="T:System.LocalDataStoreSlot" /> allocated for this thread.</para>
</returns>
<param name="name">
<attribution license="cc4" from="Microsoft" modified="false" />The name of the local data slot. </param>
</Docs>
</Member>
<Member MemberName="Interrupt">
<MemberSignature Language="C#" Value="public void Interrupt ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Interrupt() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>If this thread is not currently blocked in a wait, sleep, or join state, it will be interrupted when it next begins to block.</para>
<para>
<see cref="T:System.Threading.ThreadInterruptedException" /> is thrown in the interrupted thread, but not until the thread blocks. If the thread never blocks, the exception is never thrown, and thus the thread might complete without ever being interrupted.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Interrupts a thread that is in the WaitSleepJoin thread state.</para>
</summary>
</Docs>
</Member>
<Member MemberName="IsAlive">
<MemberSignature Language="ILASM" Value=".property bool IsAlive { public hidebysig specialname instance bool get_IsAlive() }" />
<MemberSignature Language="C#" Value="public bool IsAlive { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsAlive" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<value>
<para>
<see langword="true " />
if this thread has been started, and has not terminated; otherwise,
<see langword="false" />.</para>
</value>
<remarks>
<para>This property is read-only.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets a value indicating the execution status of the current thread.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="IsBackground">
<MemberSignature Language="ILASM" Value=".property bool IsBackground { public hidebysig specialname instance bool get_IsBackground() public hidebysig specialname instance void set_IsBackground(bool value) }" />
<MemberSignature Language="C#" Value="public bool IsBackground { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsBackground" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<value>
<para>
<see langword="true " />if the thread is or is to become
a background thread; otherwise, <see langword="false" />.
</para>
</value>
<exception cref="T:System.Threading.ThreadStateException"> The thread has reached the <see cref="F:System.Threading.ThreadState.Stopped" /> state. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A thread is either a background thread or a foreground thread. Background threads are identical to foreground threads, except that background threads do not prevent a process from terminating. Once all foreground threads belonging to a process have terminated, the common language runtime ends the process. Any remaining background threads are stopped and do not complete.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets a value indicating whether or not a thread is a background thread.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="IsThreadPoolThread">
<MemberSignature Language="C#" Value="public bool IsThreadPoolThread { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsThreadPoolThread" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For more information see <format type="text/html"><a href="2be05b06-a42e-4c9d-a739-96c21d673927">The Managed Thread Pool</a></format>.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets a value indicating whether or not a thread belongs to the managed thread pool.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Join">
<MemberSignature Language="ILASM" Value=".method public hidebysig instance void Join()" />
<MemberSignature Language="C#" Value="public void Join ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Join() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<exception cref="T:System.Threading.ThreadStateException">The caller attempted to join a thread that is in the <see cref="F:System.Threading.ThreadState.Unstarted" /> state. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use this method to ensure a thread has terminated. The caller will block indefinitely if the thread does not terminate. If the thread has already terminated when <see cref="Overload:System.Threading.Thread.Join" /> is called, the method returns immediately.</para>
<para>This method changes the state of the calling thread to include <see cref="F:System.Threading.ThreadState.WaitSleepJoin" />. You cannot invoke Join on a thread that is in the <see cref="F:System.Threading.ThreadState.Unstarted" /> state.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Blocks the calling thread until a thread terminates, while continuing to perform standard COM and SendMessage pumping.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Join">
<MemberSignature Language="ILASM" Value=".method public hidebysig instance bool Join(int32 millisecondsTimeout)" />
<MemberSignature Language="C#" Value="public bool Join (int millisecondsTimeout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool Join(int32 millisecondsTimeout) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="millisecondsTimeout" Type="System.Int32" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="millisecondsTimeout" /> is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" /> .</exception>
<exception cref="T:System.Threading.ThreadStateException">The caller attempted to join a thread that is in the <see cref="F:System.Threading.ThreadState.Unstarted" /> state. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>If <see cref="F:System.Threading.Timeout.Infinite" /> is specified for the <paramref name="millisecondsTimeout" /> parameter, this method behaves identically to the <see cref="M:System.Threading.Thread.Join" /> method overload, except for the return value.</para>
<para>If the thread has already terminated when <see cref="Overload:System.Threading.Thread.Join" /> is called, the method returns immediately.</para>
<para>This method changes the state of the calling thread to include <see cref="F:System.Threading.ThreadState.WaitSleepJoin" />. You cannot invoke Join on a thread that is in the <see cref="F:System.Threading.ThreadState.Unstarted" /> state.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Blocks the calling thread until a thread terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>true if the thread has terminated; false if the thread has not terminated after the amount of time specified by the <paramref name="millisecondsTimeout" /> parameter has elapsed.</para>
</returns>
<param name="millisecondsTimeout">
<attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds to wait for the thread to terminate. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Join">
<MemberSignature Language="ILASM" Value=".method public hidebysig instance bool Join(valuetype System.TimeSpan timeout)" />
<MemberSignature Language="C#" Value="public bool Join (TimeSpan timeout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool Join(valuetype System.TimeSpan timeout) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="timeout" Type="System.TimeSpan" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="timeout" /> is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" /> milliseconds, or is greater than <see cref="F:System.Int32.MaxValue" qualify="true" /> milliseconds.</exception>
<exception cref="T:System.Threading.ThreadStateException">The caller attempted to join a thread that is in the <see cref="F:System.Threading.ThreadState.Unstarted" /> state. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>If <see cref="F:System.Threading.Timeout.Infinite" /> is specified for <paramref name="timeout" />, this method behaves identically to the <see cref="M:System.Threading.Thread.Join" /> method overload, except for the return value.</para>
<para>If the thread has already terminated when <see cref="Overload:System.Threading.Thread.Join" /> is called, the method returns immediately.</para>
<para>This method changes the state of the current thread to include <see cref="F:System.Threading.ThreadState.WaitSleepJoin" />. You cannot invoke Join on a thread that is in the <see cref="F:System.Threading.ThreadState.Unstarted" /> state.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Blocks the calling thread until a thread terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>true if the thread terminated; false if the thread has not terminated after the amount of time specified by the <paramref name="timeout" /> parameter has elapsed.</para>
</returns>
<param name="timeout">
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.TimeSpan" /> set to the amount of time to wait for the thread to terminate. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ManagedThreadId">
<MemberSignature Language="C#" Value="public int ManagedThreadId { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 ManagedThreadId" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>get: System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the <see cref="P:System.Threading.Thread.ManagedThreadId" /> property does not vary over time, even if unmanaged code that hosts the common language runtime implements the thread as a fiber.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets a unique identifier for the current managed thread.</para>
</summary>
</Docs>
</Member>
<Member MemberName="MemoryBarrier">
<MemberSignature Language="C#" Value="public static void MemoryBarrier ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void MemoryBarrier() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
<see cref="M:System.Threading.Thread.MemoryBarrier" /> is required only on multiprocessor systems with weak memory ordering (for example, a system employing multiple Intel Itanium processors).</para>
<para>For most purposes, the C# lock statement, the Visual Basic SyncLock statement, or the <see cref="T:System.Threading.Monitor" /> class provide easier ways to synchronize data.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Synchronizes memory access as follows: The processor executing the current thread cannot reorder instructions in such a way that memory accesses prior to the call to <see cref="M:System.Threading.Thread.MemoryBarrier" /> execute after memory accesses that follow the call to <see cref="M:System.Threading.Thread.MemoryBarrier" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Name">
<MemberSignature Language="ILASM" Value=".property string Name { public hidebysig specialname instance string get_Name() public hidebysig specialname instance void set_Name(string value) }" />
<MemberSignature Language="C#" Value="public string Name { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Name" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<value>
<para>A <see cref="T:System.String" /> containing the
name of the thread, or <see langword="null" /> if no name
was set.</para>
</value>
<exception cref="T:System.InvalidOperationException">A set operation was requested, and the <see langword="Name" /> property has already been set.</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This property is write-once.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the name of the thread.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Priority">
<MemberSignature Language="ILASM" Value=".property valuetype System.Threading.ThreadPriority Priority { public hidebysig specialname instance valuetype System.Threading.ThreadPriority get_Priority() public hidebysig specialname instance void set_Priority(valuetype System.Threading.ThreadPriority value) }" />
<MemberSignature Language="C#" Value="public System.Threading.ThreadPriority Priority { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Threading.ThreadPriority Priority" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.ThreadPriority</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<value>
<para> A <see cref="T:System.Threading.ThreadPriority" /> value.
</para>
</value>
<exception cref="T:System.Threading.ThreadStateException"> The thread is in the <see cref="F:System.Threading.ThreadState.Stopped" /> state.</exception>
<exception cref="T:System.ArgumentException">The value specified for a set operation is not a valid <see cref="T:System.Threading.ThreadPriority" /> value. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A thread can be assigned any one of the following priority values: </para>
<list type="bullet">
<item>
<para>Highest </para>
</item>
<item>
<para>AboveNormal </para>
</item>
<item>
<para>Normal </para>
</item>
<item>
<para>BelowNormal </para>
</item>
<item>
<para>Lowest </para>
</item>
</list>
<para>Operating systems are not required to honor the priority of a thread.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets a value indicating the scheduling priority of a thread.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ResetAbort">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void ResetAbort()" />
<MemberSignature Language="C#" Value="public static void ResetAbort ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void ResetAbort() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<exception cref="T:System.Threading.ThreadStateException">
<see cref="M:System.Threading.Thread.Abort(System.Object)" /> was not invoked on the current thread.</exception>
<exception cref="T:System.Security.SecurityException">
<SPAN>Caller does not have <see cref="F:System.Security.Permissions.SecurityPermissionFlag.ControlThread" /> security permission for the current thread.</SPAN>
</exception>
<permission cref="!:System.Security.SecurityPermission">Requires permission to control the current thread. See <see cref="F:System.Security.Permissions.SecurityPermissionFlag.ControlThread" />.</permission>
<example>
<para>For an example that demonstrates calling
this method, see <see cref="T:System.Threading.ThreadAbortException" /> .</para>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method can only be called by code with the proper permissions. For more information see <format type="text/html"><a href="324C14F8-54FF-494D-9FD1-BFD20962C8BA">[<topic://cpconMakingSecurityDemands>]</a></format>.</para>
<para>When a call is made to Abort to terminate a thread, the system throws a <see cref="T:System.Threading.ThreadAbortException" />. ThreadAbortException is a special exception that can be caught by application code, but is rethrown at the end of the catch block unless ResetAbort is called. ResetAbort cancels the request to abort, and prevents the ThreadAbortException from terminating the thread.</para>
<para>See <see cref="T:System.Threading.ThreadAbortException" /> for an example that demonstrates calling the ResetAbort method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Cancels an <see cref="M:System.Threading.Thread.Abort(System.Object)" /> requested for the current thread.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Resume">
<MemberSignature Language="C#" Value="public void Resume ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Resume() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete("")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<block subset="none" type="note">
<para>Do not use the <see cref="M:System.Threading.Thread.Suspend" /> and <see cref="M:System.Threading.Thread.Resume" /> methods to synchronize the activities of threads. You have no way of knowing what code a thread is executing when you suspend it. If you suspend a thread while it holds locks during a security permission evaluation, other threads in the <see cref="T:System.AppDomain" /> might be blocked. If you suspend a thread while it is executing a class constructor, other threads in the <see cref="T:System.AppDomain" /> that attempt to use that class are blocked. Deadlocks can occur very easily.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Resumes a thread that has been suspended.</para>
</summary>
</Docs>
</Member>
<Member MemberName="SetApartmentState">
<MemberSignature Language="C#" Value="public void SetApartmentState (System.Threading.ApartmentState state);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetApartmentState(valuetype System.Threading.ApartmentState state) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="state" Type="System.Threading.ApartmentState" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>New threads are initialized as <see cref="F:System.Threading.ApartmentState.MTA" /> if their apartment state has not been set before they are started. Apartment state must be set before a thread is started.</para>
<block subset="none" type="note">
<para>The main application thread is initialized to <see cref="F:System.Threading.ApartmentState.MTA" /> by default. The only way to set the apartment state of the main application thread to <see cref="F:System.Threading.ApartmentState.STA" /> is to apply the <see cref="T:System.STAThreadAttribute" /> attribute to the entry point method.</para>
</block>
<para>The <see cref="M:System.Threading.Thread.SetApartmentState(System.Threading.ApartmentState)" /> method, along with the <see cref="M:System.Threading.Thread.GetApartmentState" /> method and the <see cref="M:System.Threading.Thread.TrySetApartmentState(System.Threading.ApartmentState)" /> method, replaces the <see cref="P:System.Threading.Thread.ApartmentState" /> property.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Sets the apartment state of a thread before it is started.</para>
</summary>
<param name="state">
<attribution license="cc4" from="Microsoft" modified="false" />The new apartment state.</param>
</Docs>
</Member>
<Member MemberName="SetCompressedStack">
<MemberSignature Language="C#" Value="public void SetCompressedStack (System.Threading.CompressedStack stack);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetCompressedStack(class System.Threading.CompressedStack stack) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete("see CompressedStack class")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="stack" Type="System.Threading.CompressedStack" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method is no longer supported.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Applies a captured <see cref="T:System.Threading.CompressedStack" /> to the current thread. </para>
</summary>
<param name="stack">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Threading.CompressedStack" /> object to be applied to the current thread.</param>
</Docs>
</Member>
<Member MemberName="SetData">
<MemberSignature Language="C#" Value="public static void SetData (LocalDataStoreSlot slot, object data);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetData(class System.LocalDataStoreSlot slot, object data) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="slot" Type="System.LocalDataStoreSlot" />
<Parameter Name="data" Type="System.Object" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<block subset="none" type="note">
<para>The .NET Framework provides two mechanisms for using thread local storage (TLS): thread-relative static fields (that is, fields that are marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute) and data slots. Thread-relative static fields provide much better performance than data slots, and enable compile-time type checking. For more information about using TLS, see <format type="text/html"><a href="c633a4dc-a790-4ed1-96b5-f72bd968b284">Thread Local Storage: Thread-Relative Static Fields and Data Slots</a></format>.</para>
</block>
<para>Threads use a local store memory mechanism to store thread-specific data. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread can allocate a data slot in the data store, store and retrieve a data value in the slot, and free the slot for reuse after the thread procedure ends and the <see cref="T:System.Threading.Thread" /> object has been reclaimed by garbage collection. Data slots are unique per thread. No other thread (not even a child thread) can get that data.</para>
<block subset="none" type="note">
<para>
<see cref="M:System.Threading.Thread.SetData(System.LocalDataStoreSlot,System.Object)" /> is a Shared method that always applies to the currently executing thread, even if you call it using a variable that refers to another thread. To avoid confusion, use the class name when calling Shared methods: Thread.SetData(testSlot, "test data").</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Sets the data in the specified slot on the currently running thread, for that thread's current domain. For better performance, use fields marked with the <see cref="T:System.ThreadStaticAttribute" /> attribute instead.</para>
</summary>
<param name="slot">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.LocalDataStoreSlot" /> in which to set the value. </param>
<param name="data">
<attribution license="cc4" from="Microsoft" modified="false" />The value to be set. </param>
</Docs>
</Member>
<Member MemberName="Sleep">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void Sleep(int32 millisecondsTimeout)" />
<MemberSignature Language="C#" Value="public static void Sleep (int millisecondsTimeout);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void Sleep(int32 millisecondsTimeout) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="millisecondsTimeout" Type="System.Int32" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="millisecondsTimeout" /> is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" qualify="true" /> .</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The thread will not be scheduled for execution by the operating system for the amount of time specified. This method changes the state of the thread to include <see cref="F:System.Threading.ThreadState.WaitSleepJoin" />.</para>
<para>You can specify <see cref="F:System.Threading.Timeout.Infinite" /> for the <paramref name="millisecondsTimeout" /> parameter to suspend the thread indefinitely. However, we recommend that you use other <see cref="N:System.Threading" /> classes such as <see cref="T:System.Threading.Mutex" />, <see cref="T:System.Threading.Monitor" />, <see cref="T:System.Threading.EventWaitHandle" />, or <see cref="T:System.Threading.Semaphore" /> instead to sychronize threads or manage resources.</para>
<para>This method does not perform standard COM and SendMessage pumping.</para>
<block subset="none" type="note">
<para>If you need to sleep on a thread that has <see cref="T:System.STAThreadAttribute" />, but you want to perform standard COM and SendMessage pumping, consider using one of the overloads of the <see cref="Overload:System.Threading.Thread.Join" /> method that specifies a timeout interval.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Suspends the current thread for the specified number of milliseconds.</para>
</summary>
<param name="millisecondsTimeout">
<attribution license="cc4" from="Microsoft" modified="false" />The number of milliseconds for which the thread is suspended. A value of zero (0) has no effect. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Sleep">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void Sleep(valuetype System.TimeSpan timeout)" />
<MemberSignature Language="C#" Value="public static void Sleep (TimeSpan timeout);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void Sleep(valuetype System.TimeSpan timeout) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="timeout" Type="System.TimeSpan" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="timeout" /> is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" /> milliseconds, or is greater than <see cref="F:System.Int32.MaxValue" qualify="true" /> milliseconds.</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The thread will not be scheduled for execution by the operating system for the amount of time specified. This method changes the state of the thread to include <see cref="F:System.Threading.ThreadState.WaitSleepJoin" />.</para>
<para>You can specify <see cref="F:System.Threading.Timeout.InfiniteTimeSpan" /> for the <paramref name="timeout" /> parameter to suspend the thread indefinitely. However, we recommend that you use other <see cref="N:System.Threading" /> classes such as <see cref="T:System.Threading.Mutex" />, <see cref="T:System.Threading.Monitor" />, <see cref="T:System.Threading.EventWaitHandle" />, or <see cref="T:System.Threading.Semaphore" /> instead to sychronize threads or manage resources.</para>
<para>This overload of <see cref="Overload:System.Threading.Thread.Sleep" /> uses the total number of whole milliseconds in <paramref name="timeout" />. Fractional milliseconds are discarded.</para>
<para>This method does not perform standard COM and SendMessage pumping.</para>
<block subset="none" type="note">
<para>If you need to sleep on a thread that has <see cref="T:System.STAThreadAttribute" />, but you want to perform standard COM and SendMessage pumping, consider using one of the overloads of the <see cref="Overload:System.Threading.Thread.Join" /> method that specifies a timeout interval.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Suspends the current thread for the specified amount of time.</para>
</summary>
<param name="timeout">
<attribution license="cc4" from="Microsoft" modified="false" />The amount of time for which the thread is suspended.</param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="SpinWait">
<MemberSignature Language="C#" Value="public static void SpinWait (int iterations);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void SpinWait(int32 iterations) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="iterations" Type="System.Int32" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Threading.Thread.SpinWait(System.Int32)" /> method is useful for implementing locks. Classes in the .NET Framework, such as <see cref="T:System.Threading.Monitor" /> and <see cref="T:System.Threading.ReaderWriterLock" />, use this method internally. <see cref="M:System.Threading.Thread.SpinWait(System.Int32)" /> essentially puts the processor into a very tight loop, with the loop count specified by the <paramref name="iterations" /> parameter. The duration of the wait therefore depends on the speed of the processor.</para>
<para>Contrast this with the <see cref="M:System.Threading.Thread.Sleep(System.Int32)" /> method. A thread that calls <see cref="M:System.Threading.Thread.Sleep(System.Int32)" /> yields the rest of its current slice of processor time, even if the specified interval is zero. Specifying a non-zero interval for <see cref="M:System.Threading.Thread.Sleep(System.Int32)" /> removes the thread from consideration by the thread scheduler until the time interval has elapsed. </para>
<para>
<see cref="M:System.Threading.Thread.SpinWait(System.Int32)" /> is not generally useful for ordinary applications. In most cases, you should use the synchronization classes provided by the .NET Framework; for example, call <see cref="M:System.Threading.Monitor.Enter(System.Object)" /> or a statement that wraps <see cref="M:System.Threading.Monitor.Enter(System.Object)" /> (lock in C# or SyncLock in Visual Basic).</para>
<block subset="none" type="note">
<para>In the rare case where it is advantageous to avoid a context switch, such as when you know that a state change is imminent, make a call to the <see cref="M:System.Threading.Thread.SpinWait(System.Int32)" /> method in your loop. The code <see cref="M:System.Threading.Thread.SpinWait(System.Int32)" /> executes is designed to prevent problems that can occur on computers with multiple processors. For example, on computers with multiple Intel processors employing Hyper-Threading technology, <see cref="M:System.Threading.Thread.SpinWait(System.Int32)" /> prevents processor starvation in certain situations.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Causes a thread to wait the number of times defined by the <paramref name="iterations" /> parameter.</para>
</summary>
<param name="iterations">
<attribution license="cc4" from="Microsoft" modified="false" />A 32-bit signed integer that defines how long a thread is to wait. </param>
</Docs>
</Member>
<Member MemberName="Start">
<MemberSignature Language="ILASM" Value=".method public hidebysig instance void Start()" />
<MemberSignature Language="C#" Value="public void Start ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Start() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<exception cref="T:System.OutOfMemoryException">There is not enough memory available to start the thread.</exception>
<exception cref="T:System.NullReferenceException">This method was invoked on a <see langword="null" /> thread reference.</exception>
<exception cref="T:System.Threading.ThreadStateException">The thread has already been started. </exception>
<example>
<para>The following example demonstrates creating a thread and starting it.</para>
<code lang="C#">using System;
using System.Threading;
public class ThreadWork {
public static void DoWork() {
for (int i = 0; i<3;i++) {
Console.WriteLine ("Working thread ...");
Thread.Sleep(100);
}
}
}
class ThreadTest{
public static void Main() {
ThreadStart myThreadDelegate = new ThreadStart(ThreadWork.DoWork);
Thread myThread = new Thread(myThreadDelegate);
myThread.Start();
for (int i = 0; i<3; i++) {
Console.WriteLine("In main.");
Thread.Sleep(100);
}
}
}
</code>
<para>One possible set of output is</para>
<c>
<para>In main. </para>
<para>Working thread ... </para>
<para>In main. </para>
<para>Working thread ... </para>
<para>In main. </para>
<para>Working thread ... </para>
</c>
<para> Note that the sequence of the output statements is not guaranteed to be identical across systems. </para>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Once a thread is in the <see cref="F:System.Threading.ThreadState.Running" /> state, the operating system can schedule it for execution. The thread begins executing at the first line of the method represented by the <see cref="T:System.Threading.ThreadStart" /> or <see cref="T:System.Threading.ParameterizedThreadStart" /> delegate supplied to the thread constructor.</para>
<block subset="none" type="note">
<para>If this overload is used with a thread created using a <see cref="T:System.Threading.ParameterizedThreadStart" /> delegate, null is passed to the method executed by the thread.</para>
</block>
<para>Once the thread terminates, it cannot be restarted with another call to Start.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Causes the operating system to change the state of the current instance to <see cref="F:System.Threading.ThreadState.Running" />.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Start">
<MemberSignature Language="C#" Value="public void Start (object parameter);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Start(object parameter) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="parameter" Type="System.Object" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Once a thread is in the <see cref="F:System.Threading.ThreadState.Running" /> state, the operating system can schedule it for execution. The thread begins executing at the first line of the method represented by the <see cref="T:System.Threading.ThreadStart" /> or <see cref="T:System.Threading.ParameterizedThreadStart" /> delegate supplied to the thread constructor.</para>
<para>Once the thread terminates, it cannot be restarted with another call to Start.</para>
<para>This overload and the <see cref="T:System.Threading.ParameterizedThreadStart" /> delegate make it easy to pass data to a thread procedure, but the technique is not type safe because any object can be passed to this overload. A more robust way to pass data to a thread procedure is to put both the thread procedure and the data fields into a worker object. For more information, see <format type="text/html"><a href="52b32222-e185-4f42-91a7-eaca65c0ab6d">Creating Threads</a></format>.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Causes the operating system to change the state of the current instance to <see cref="F:System.Threading.ThreadState.Running" />, and optionally supplies an object containing data to be used by the method the thread executes.</para>
</summary>
<param name="parameter">
<attribution license="cc4" from="Microsoft" modified="false" />An object that contains data to be used by the method the thread executes.</param>
</Docs>
</Member>
<Member MemberName="Suspend">
<MemberSignature Language="C#" Value="public void Suspend ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Suspend() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete("")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>If the thread is already suspended, this method has no effect.</para>
<block subset="none" type="note">
<para>Do not use the <see cref="M:System.Threading.Thread.Suspend" /> and <see cref="M:System.Threading.Thread.Resume" /> methods to synchronize the activities of threads. You have no way of knowing what code a thread is executing when you suspend it. If you suspend a thread while it holds locks during a security permission evaluation, other threads in the <see cref="T:System.AppDomain" /> might be blocked. If you suspend a thread while it is executing a class constructor, other threads in the <see cref="T:System.AppDomain" /> that attempt to use that class are blocked. Deadlocks can occur very easily.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Either suspends the thread, or if the thread is already suspended, has no effect.</para>
</summary>
</Docs>
</Member>
<Member MemberName="System.Runtime.InteropServices._Thread.GetIDsOfNames">
<MemberSignature Language="C#" Value="void _Thread.GetIDsOfNames (ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._Thread.GetIDsOfNames(valuetype System.Guid riid, native int rgszNames, unsigned int32 cNames, unsigned int32 lcid, native int rgDispId) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="riid" Type="System.Guid&" RefType="ref" />
<Parameter Name="rgszNames" Type="System.IntPtr" />
<Parameter Name="cNames" Type="System.UInt32" />
<Parameter Name="lcid" Type="System.UInt32" />
<Parameter Name="rgDispId" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="riid">To be added.</param>
<param name="rgszNames">To be added.</param>
<param name="cNames">To be added.</param>
<param name="lcid">To be added.</param>
<param name="rgDispId">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="System.Runtime.InteropServices._Thread.GetTypeInfo">
<MemberSignature Language="C#" Value="void _Thread.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._Thread.GetTypeInfo(unsigned int32 iTInfo, unsigned int32 lcid, native int ppTInfo) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="iTInfo" Type="System.UInt32" />
<Parameter Name="lcid" Type="System.UInt32" />
<Parameter Name="ppTInfo" Type="System.IntPtr" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method is for access to managed classes from unmanaged code, and should not be called from managed code. For more information about <unmanagedCodeEntityReference>IDispatch::GetTypeInfo</unmanagedCodeEntityReference>, see the MSDN Library.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Retrieves the type information for an object, which can then be used to get the type information for an interface.</para>
</summary>
<param name="iTInfo">
<attribution license="cc4" from="Microsoft" modified="false" />The type information to return.</param>
<param name="lcid">
<attribution license="cc4" from="Microsoft" modified="false" />The locale identifier for the type information.</param>
<param name="ppTInfo">
<attribution license="cc4" from="Microsoft" modified="false" />Receives a pointer to the requested type information object.</param>
</Docs>
</Member>
<Member MemberName="System.Runtime.InteropServices._Thread.GetTypeInfoCount">
<MemberSignature Language="C#" Value="void _Thread.GetTypeInfoCount (out uint pcTInfo);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._Thread.GetTypeInfoCount(unsigned int32 pcTInfo) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="pcTInfo" Type="System.UInt32&" RefType="out" />
</Parameters>
<Docs>
<param name="pcTInfo">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="System.Runtime.InteropServices._Thread.Invoke">
<MemberSignature Language="C#" Value="void _Thread.Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._Thread.Invoke(unsigned int32 dispIdMember, valuetype System.Guid riid, unsigned int32 lcid, int16 wFlags, native int pDispParams, native int pVarResult, native int pExcepInfo, native int puArgErr) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="dispIdMember" Type="System.UInt32" />
<Parameter Name="riid" Type="System.Guid&" RefType="ref" />
<Parameter Name="lcid" Type="System.UInt32" />
<Parameter Name="wFlags" Type="System.Int16" />
<Parameter Name="pDispParams" Type="System.IntPtr" />
<Parameter Name="pVarResult" Type="System.IntPtr" />
<Parameter Name="pExcepInfo" Type="System.IntPtr" />
<Parameter Name="puArgErr" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="dispIdMember">To be added.</param>
<param name="riid">To be added.</param>
<param name="lcid">To be added.</param>
<param name="wFlags">To be added.</param>
<param name="pDispParams">To be added.</param>
<param name="pVarResult">To be added.</param>
<param name="pExcepInfo">To be added.</param>
<param name="puArgErr">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ThreadState">
<MemberSignature Language="ILASM" Value=".property valuetype System.Threading.ThreadState ThreadState { public hidebysig specialname instance valuetype System.Threading.ThreadState get_ThreadState() }" />
<MemberSignature Language="C#" Value="public System.Threading.ThreadState ThreadState { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Threading.ThreadState ThreadState" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.ThreadState</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<value>
<para> A combination of one or more <see cref="T:System.Threading.ThreadState" /> values, which indicate
the state of the current thread.</para>
</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="P:System.Threading.Thread.ThreadState" /> property provides more specific information than the <see cref="P:System.Threading.Thread.IsAlive" /> property.</para>
<block subset="none" type="note">
<para>Thread state is only of interest in debugging scenarios. Your code should never use thread state to synchronize the activities of threads.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets a value containing the states of the current thread.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="TrySetApartmentState">
<MemberSignature Language="C#" Value="public bool TrySetApartmentState (System.Threading.ApartmentState state);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool TrySetApartmentState(valuetype System.Threading.ApartmentState state) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="state" Type="System.Threading.ApartmentState" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>New threads are initialized as <see cref="F:System.Threading.ApartmentState.MTA" /> if their apartment state has not been set before they are started. Apartment state must be set before a thread is started.</para>
<block subset="none" type="note">
<para>The main application thread is initialized to <see cref="F:System.Threading.ApartmentState.MTA" /> by default. The only way to set the apartment state of the main application thread to <see cref="F:System.Threading.ApartmentState.STA" /> is to apply the <see cref="T:System.STAThreadAttribute" /> attribute to the entry point method.</para>
</block>
<para>The <see cref="M:System.Threading.Thread.TrySetApartmentState(System.Threading.ApartmentState)" /> method, along with the <see cref="M:System.Threading.Thread.GetApartmentState" /> method and the <see cref="M:System.Threading.Thread.SetApartmentState(System.Threading.ApartmentState)" /> method, replaces the <see cref="P:System.Threading.Thread.ApartmentState" /> property.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Sets the apartment state of a thread before it is started.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>true if the apartment state is set; otherwise, false.</para>
</returns>
<param name="state">
<attribution license="cc4" from="Microsoft" modified="false" />The new apartment state.</param>
</Docs>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static byte VolatileRead (class System.Byte& address)" />
<MemberSignature Language="C#" Value="public static byte VolatileRead (ref byte address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int8 VolatileRead(unsigned int8 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Byte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Byte&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Byte" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.Byte" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static float64 VolatileRead (class System.Double& address)" />
<MemberSignature Language="C#" Value="public static double VolatileRead (ref double address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 VolatileRead(float64 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Double&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Double" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.Double" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static int16 VolatileRead (class System.Int16& address)" />
<MemberSignature Language="C#" Value="public static short VolatileRead (ref short address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int16 VolatileRead(int16 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Int16&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Int16" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.Int16" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static int32 VolatileRead (class System.Int32& address)" />
<MemberSignature Language="C#" Value="public static int VolatileRead (ref int address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 VolatileRead(int32 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Int32&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Int32" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.Int32" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static int64 VolatileRead (class System.Int64& address)" />
<MemberSignature Language="C#" Value="public static long VolatileRead (ref long address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 VolatileRead(int64 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Int64&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Int64" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.Int64" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static intptr VolatileRead (class System.IntPtr& address)" />
<MemberSignature Language="C#" Value="public static IntPtr VolatileRead (ref IntPtr address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig native int VolatileRead(native int address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.IntPtr&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.IntPtr" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.IntPtr" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>RuntimeInfrastructure</ExcludedLibrary>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static object VolatileRead (class System.Object& address)" />
<MemberSignature Language="C#" Value="public static object VolatileRead (ref object address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig object VolatileRead(object address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Object&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Object" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.Object" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static sbyte VolatileRead (class System.Sbyte& address)" />
<MemberSignature Language="C#" Value="public static sbyte VolatileRead (ref sbyte address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int8 VolatileRead(int8 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.SByte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.SByte&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.SByte" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.SByte" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static float32 VolatileRead (class System.Single& address)" />
<MemberSignature Language="C#" Value="public static float VolatileRead (ref float address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 VolatileRead(float32 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Single</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Single&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Single" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.Single" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static uint16 VolatileRead (class System.UInt16& address)" />
<MemberSignature Language="C#" Value="public static ushort VolatileRead (ref ushort address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int16 VolatileRead(unsigned int16 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.UInt16&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.UInt16" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.UInt16" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static uint32 VolatileRead (class System.UInt32& address)" />
<MemberSignature Language="C#" Value="public static uint VolatileRead (ref uint address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int32 VolatileRead(unsigned int32 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.UInt32&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.UInt32" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.UInt32" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="ILASM" Value=".method public hidebysig static uint64 VolatileRead (class System.UInt64& address)" />
<MemberSignature Language="C#" Value="public static ulong VolatileRead (ref ulong address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int64 VolatileRead(unsigned int64 address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.UInt64&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.UInt64" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.UInt64" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileRead">
<MemberSignature Language="C#" Value="public static UIntPtr VolatileRead (ref UIntPtr address);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig native unsigned int VolatileRead(native unsigned int address) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UIntPtr</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.UIntPtr&" RefType="ref" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.UIntPtr" /> that specifies the address in memory from which to read.</param>
<summary>
<para>Performs a volatile read from the specified address.</para>
</summary>
<returns>
<para>A <see cref="T:System.UIntPtr" /> containing the value at the specified address after any pending writes.</para>
</returns>
<remarks>
<para>The value at the given address is atomically loaded with acquire semantics, meaning that the read is guaranteed to occur prior to any references to memory that occur after the execution of this method in the current thread. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileWrite" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the load CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.Byte& address, byte value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref byte address, byte value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(unsigned int8 address, unsigned int8 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Byte&" RefType="ref" />
<Parameter Name="value" Type="System.Byte" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Byte" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.Byte" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.Double& address, float64 value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref double address, double value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(float64 address, float64 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Double&" RefType="ref" />
<Parameter Name="value" Type="System.Double" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Double" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.Double" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.Int16& address, int16 value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref short address, short value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(int16 address, int16 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Int16&" RefType="ref" />
<Parameter Name="value" Type="System.Int16" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Int16" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.Int16" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.Int32& address, int32 value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref int address, int value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(int32 address, int32 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Int32&" RefType="ref" />
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Int32" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.Int32" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.Int64& address, int64 value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref long address, long value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(int64 address, int64 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Int64&" RefType="ref" />
<Parameter Name="value" Type="System.Int64" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Int64" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.Int64" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.IntPtr& address, IntPtr value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref IntPtr address, IntPtr value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(native int address, native int value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.IntPtr&" RefType="ref" />
<Parameter Name="value" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.IntPtr" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.IntPtr" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>RuntimeInfrastructure</ExcludedLibrary>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.Object& address, object value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref object address, object value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(object address, object value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Object&" RefType="ref" />
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Object" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.Object" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.SByte& address, sbyte value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref sbyte address, sbyte value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(int8 address, int8 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.SByte&" RefType="ref" />
<Parameter Name="value" Type="System.SByte" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.SByte" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.SByte" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.Single& address, float32 value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref float address, float value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(float32 address, float32 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.Single&" RefType="ref" />
<Parameter Name="value" Type="System.Single" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.Single" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.Single" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.UInt16& address, uint16 value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref ushort address, ushort value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(unsigned int16 address, unsigned int16 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.UInt16&" RefType="ref" />
<Parameter Name="value" Type="System.UInt16" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.UInt16" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.UInt16" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.UInt32& address, uint32 value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref uint address, uint value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(unsigned int32 address, unsigned int32 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.UInt32&" RefType="ref" />
<Parameter Name="value" Type="System.UInt32" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.UInt32" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.UInt32" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref ulong address, ulong value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(unsigned int64 address, unsigned int64 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.UInt64&" RefType="ref" />
<Parameter Name="value" Type="System.UInt64" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.UInt64" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.UInt64" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
</Member>
<Member MemberName="VolatileWrite">
<MemberSignature Language="ILASM" Value=".method public hidebysig static void VolatileWrite (class System.UIntPtr& address, UIntPtr value)" />
<MemberSignature Language="C#" Value="public static void VolatileWrite (ref UIntPtr address, UIntPtr value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void VolatileWrite(native unsigned int address, native unsigned int value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="System.UIntPtr&" RefType="ref" />
<Parameter Name="value" Type="System.UIntPtr" />
</Parameters>
<Docs>
<param name="address">A reference to a <see cref="T:System.UIntPtr" /> that specifies the address in memory at which to write.</param>
<param name="value">A <see cref="T:System.UIntPtr" /> that specifies the value to write.</param>
<summary>
<para>Performs a volatile write to the specified address.</para>
</summary>
<remarks>
<para>The value is written atomically to the specified address with release semantics, meaning that the write is guaranteed to happen after any references to memory that occur prior to the execution. It is recommended that <see cref="M:System.Threading.Thread.VolatileRead" /> and <see cref="M:System.Threading.Thread.VolatileWrite" /> be used in conjunction. Calling this method affects only this single access; other accesses to the same location are required to also be made using this method or <see cref="M:System.Threading.Thread.VolatileRead" /> if the volatile semantics are to be preserved. This method has exactly the same semantics as using the volatile prefix on the store CIL instruction, except that atomicity is provided for all types, not just those 32 bits or smaller in size. <block subset="none" type="note">For additional information, see Partition I of the CLI Specification.</block></para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>RuntimeInfrastructure</ExcludedLibrary>
</Member>
<Member MemberName="Yield">
<MemberSignature Language="C#" Value="public static bool Yield ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool Yield() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>If this method succeeds, the rest of the thread's current time slice is yielded. The operating system schedules the calling thread for another time slice, according to its priority and the status of other threads that are available to run. </para>
<para>Yielding is limited to the processor that is executing the calling thread. The operating system will not switch execution to another processor, even if that processor is idle or is running a thread of lower priority. If there are no other threads that are ready to execute on the current processor, the operating system does not yield execution, and this method returns false. </para>
<para>This method is equivalent to using platform invoke to call the native Win32 <unmanagedCodeEntityReference>SwitchToThread</unmanagedCodeEntityReference> function. You should call the <see cref="M:System.Threading.Thread.Yield" /> method instead of using platform invoke, because platform invoke bypasses any custom threading behavior the host has requested.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Causes the calling thread to yield execution to another thread that is ready to run on the current processor. The operating system selects the thread to yield to.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>true if the operating system switched execution to another thread; otherwise, false.</para>
</returns>
</Docs>
</Member>
</Members>
<TypeExcluded>0</TypeExcluded>
</Type>
|