PerformanceCounter.ReadOnly Proprietà

Definizione

Ottiene o imposta un valore che indica se questa istanza di PerformanceCounter è in modalità di sola lettura.

public:
 property bool ReadOnly { bool get(); void set(bool value); };
public bool ReadOnly { get; set; }
[System.ComponentModel.Browsable(false)]
public bool ReadOnly { get; set; }
member this.ReadOnly : bool with get, set
[<System.ComponentModel.Browsable(false)>]
member this.ReadOnly : bool with get, set
Public Property ReadOnly As Boolean

Valore della proprietà

Boolean

true , se l'istanza di PerformanceCounter è in modalità di sola lettura (sebbene il contatore stesso possa essere un contatore personalizzato .NET Framework); false se è in modalità di lettura e scrittura. Il valore predefinito è il valore impostato dal costruttore.

Attributi

Commenti

Per un contatore di sistema, ReadOnly deve sempre true. Non è possibile scrivere in un contatore di sistema.

Si applica a