PISystem.EventsEnabled Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets or sets a value indicating if events are enabled for the PISystem.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool EventsEnabled { get; set; }
Public Property EventsEnabled As Boolean Get Set Dim instance As PISystem Dim value As Boolean value = instance.EventsEnabled instance.EventsEnabled = value
public: property bool EventsEnabled { bool get (); void set (bool value); }
member EventsEnabled : bool with get, set
Property Value
Type: BooleanReturns if events are enabled; otherwise .
Remarks
By default, events are enabled for the PISystem. This allows the
Changed event to be raised. If your application is not
interested in events or do not want events to be raised for a period of time, then
they can be disabled. Disabling events can provide a performance improvement.