Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFElementTemplate.Severity Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElementTemplate.Severity Property
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: AFSeverity
The default value for the Severity property of the AFEventFrame created from this template. The default value is None.

Exceptions

ExceptionCondition
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.

Caution note Caution
This property can only be set for an AFEventFrameInstanceType. An InvalidOperationException will be thrown for any other InstanceType.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in