RegistryProxy.PerformanceData Property

Returns a RegistryKey type, which provides access to HKEY_PERFORMANCE_DATA.

Namespace:  Microsoft.VisualBasic.MyServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public RegistryKey PerformanceData { get; }

HKEY_PERFORMANCE_DATA is used to access performance information for software components. Each software component creates keys for its objects and counters when it is installed and writes counter data while it is executing. This data is not stored in the registry, although the registry is used to access it. Instead, calling registry functions via HKEY_PERFORMANCE_DATA causes the system to collect the data from the appropriate system object managers.

This key does not exist on Windows 98 systems; an attempt to use it other than calling the Name method will throw an IOException.

This key cannot normally be written to; attempting to create a subkey on it will throw an IOException.

The RegistryPermission class, which is in the System.Security.Permissions namespace, controls access to registry variables. Registry variables should not be stored in memory locations where code without RegistryPermission can access them. Similarly, when granting permissions, grant the fewest privileges necessary to get the job done.

Registry permission access values are defined by the RegistryPermissionAccess enumeration. The following table details its members.

Value

Description

AllAccess

Create, read, and write access to registry variables.

Create

Create access to registry variables.

NoAccess

No access to registry variables.

Read

Read access to registry variables.

Write

Write access to registry variables.

The following table lists examples of tasks involving the My.Computer.Registry object.

This example gets the value ThisSoftware from the MyCompany subkey.

My.Computer.Registry.PerformanceData.GetValue("MyCompany\ThisSoftware")

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft