System.Diagnostics.PerformanceCounter.MachineName Property

Gets or sets the computer name for this performance counter

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue(".")]
[System.ComponentModel.RecommendedAsConfigurable(true)]
[System.MonoTODO("What's the machine name format?")]
public string MachineName { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

You can write values only to counters that reside on the local computer. However, you can read counter values from any computer in the enterprise for which you have access privileges.

When you set the PerformanceCounter.MachineName property to point to a remote computer, the System.Diagnostics.PerformanceCounter instance attempts to open the counter on that computer. If the counter does not exist, setting this property throws an exception.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0