AFElementTemplate.Severity Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This property is the default value for the Severity
property of any new AFEventFrame created from this template.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSeverity Severity { get; set; }
Public Property Severity As AFSeverity Get Set Dim instance As AFElementTemplate Dim value As AFSeverity value = instance.Severity instance.Severity = value
public: property AFSeverity Severity { AFSeverity get (); void set (AFSeverity value); }
member Severity : AFSeverity with get, set
Property Value
Type: AFSeverityThe default value for the Severity property of the AFEventFrame created from this template. The default value is None.
Exceptions
| Exception | Condition |
|---|---|
| NotSupportedException | This exception is thrown when the EventFrameAcknowledgement feature is not enabled on the PI AF Server. |
| InvalidOperationException | This exception is thrown if the InstanceType is not set to AFEventFrame. |
Remarks
When a new AFEventFrame is created from this template, the initial value of its Severity property will be set to the value of this property. The value can then be changed in each Event Frame instance to indicate severity level of that specific event. Future changes to this property value will not affect the setting in existing Event Frames.
| This property can only be set for an AFEventFrameInstanceType. An InvalidOperationException will be thrown for any other InstanceType. |