|
409 | 409 | If you have not set the <xref:System.Diagnostics.PerformanceCounterCategory.MachineName%2A> property, this method uses the local computer (".").
|
410 | 410 |
|
411 | 411 | > [!NOTE]
|
412 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 412 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
413 | 413 | >
|
414 | 414 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
415 | 415 | >
|
|
481 | 481 | ## Remarks
|
482 | 482 |
|
483 | 483 | > [!NOTE]
|
484 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 484 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
485 | 485 | >
|
486 | 486 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
487 | 487 | >
|
|
553 | 553 | ## Remarks
|
554 | 554 |
|
555 | 555 | > [!NOTE]
|
556 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 556 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
557 | 557 | >
|
558 | 558 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
559 | 559 | >
|
|
655 | 655 | ## Remarks
|
656 | 656 |
|
657 | 657 | > [!NOTE]
|
658 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 658 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
659 | 659 | >
|
660 | 660 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
661 | 661 | >
|
|
743 | 743 | > It is strongly recommended that new performance counter categories be created during the installation of the application, not during the execution of the application. This allows time for the operating system to refresh its list of registered performance counter categories. If the list has not been refreshed, the attempt to use the category will fail.
|
744 | 744 |
|
745 | 745 | > [!NOTE]
|
746 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 746 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
747 | 747 | >
|
748 | 748 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
749 | 749 | >
|
|
846 | 846 | ## Remarks
|
847 | 847 |
|
848 | 848 | > [!NOTE]
|
849 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 849 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
850 | 850 | >
|
851 | 851 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
852 | 852 | >
|
|
937 | 937 | > It is strongly recommended that new performance counter categories be created during the installation of the application, not during the execution of the application. This allows time for the operating system to refresh its list of registered performance counter categories. If the list has not been refreshed, the attempt to use the category will fail.
|
938 | 938 |
|
939 | 939 | > [!NOTE]
|
940 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 940 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
941 | 941 | >
|
942 | 942 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
943 | 943 | >
|
|
1015 | 1015 | You can delete only custom performance counter categories from the system. You cannot delete a counter from a category. To do so, delete the category and recreate the category with the counters you want to retain. To avoid an exception, confirm that the category exists before you attempt to delete it.
|
1016 | 1016 |
|
1017 | 1017 | > [!NOTE]
|
1018 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1018 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1019 | 1019 | >
|
1020 | 1020 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1021 | 1021 | >
|
|
1093 | 1093 | Use of the <xref:System.Diagnostics.PerformanceCounterCategory.Exists%2A> method can result in a noticeable performance penalty while all performance counters on the machine are checked for availability. If you are only writing to a performance counter, you can avoid the global search for performance counters by creating the performance counter when the application is installed and assuming the category exists when accessing the counter. There is no way to avoid the performance counter search when reading from performance counters.
|
1094 | 1094 |
|
1095 | 1095 | > [!NOTE]
|
1096 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1096 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1097 | 1097 | >
|
1098 | 1098 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1099 | 1099 | >
|
|
1159 | 1159 | Use of the <xref:System.Diagnostics.PerformanceCounterCategory.Exists%2A> method can result in a noticeable performance penalty while all performance counters on the machine are checked for availability. If you are only writing to a performance counter, you can avoid the global search for performance counters by creating the performance counter when the application is installed and assuming the category exists when accessing the counter. There is no way to avoid the performance counter search when reading from performance counters.
|
1160 | 1160 |
|
1161 | 1161 | > [!NOTE]
|
1162 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1162 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1163 | 1163 | >
|
1164 | 1164 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1165 | 1165 | >
|
|
1242 | 1242 | ## Remarks
|
1243 | 1243 |
|
1244 | 1244 | > [!NOTE]
|
1245 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1245 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1246 | 1246 | >
|
1247 | 1247 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1248 | 1248 | >
|
|
1302 | 1302 | To retrieve the categories on the local computer, use another overload or pass "." as the `machineName` parameter.
|
1303 | 1303 |
|
1304 | 1304 | > [!NOTE]
|
1305 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1305 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1306 | 1306 | >
|
1307 | 1307 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1308 | 1308 | >
|
|
1369 | 1369 | For more information about performance object instances, see the <xref:System.Diagnostics.PerformanceCounter> class overview.
|
1370 | 1370 |
|
1371 | 1371 | > [!NOTE]
|
1372 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1372 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1373 | 1373 | >
|
1374 | 1374 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1375 | 1375 | >
|
|
1435 | 1435 | For more information about performance object instances, see the <xref:System.Diagnostics.PerformanceCounter> class overview.
|
1436 | 1436 |
|
1437 | 1437 | > [!NOTE]
|
1438 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1438 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1439 | 1439 | >
|
1440 | 1440 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1441 | 1441 | >
|
|
1499 | 1499 | ## Remarks
|
1500 | 1500 |
|
1501 | 1501 | > [!NOTE]
|
1502 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1502 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1503 | 1503 | >
|
1504 | 1504 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1505 | 1505 | >
|
|
1576 | 1576 | This overload of <xref:System.Diagnostics.PerformanceCounterCategory.InstanceExists%2A> is not `static`. It requires you to create a <xref:System.Diagnostics.PerformanceCounterCategory> object and to set the <xref:System.Diagnostics.PerformanceCounterCategory.CategoryName%2A> property.
|
1577 | 1577 |
|
1578 | 1578 | > [!NOTE]
|
1579 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1579 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1580 | 1580 | >
|
1581 | 1581 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1582 | 1582 | >
|
|
1650 | 1650 | It is not possible to determine whether a performance object instance exists on a computer without specifying a specific category to look in.
|
1651 | 1651 |
|
1652 | 1652 | > [!NOTE]
|
1653 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1653 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1654 | 1654 | >
|
1655 | 1655 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1656 | 1656 | >
|
|
1725 | 1725 | You can use "." to specify the local computer.
|
1726 | 1726 |
|
1727 | 1727 | > [!NOTE]
|
1728 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1728 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1729 | 1729 | >
|
1730 | 1730 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1731 | 1731 | >
|
|
1851 | 1851 | Reading the entire category at once can be as efficient as reading a single counter because of the way that the system provides the data.
|
1852 | 1852 |
|
1853 | 1853 | > [!NOTE]
|
1854 |
| -> To read performance counters in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
| 1854 | +> To read performance counters from a non-interactive logon session in Windows Vista and later, Windows XP Professional x64 Edition, or Windows Server 2003, you must either be a member of the Performance Monitor Users group or have administrative privileges. |
1855 | 1855 | >
|
1856 | 1856 | > To avoid having to elevate your privileges to access performance counters in Windows Vista and later, add yourself to the Performance Monitor Users group.
|
1857 | 1857 | >
|
|
0 commit comments