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

AF SDK Reference

AFTimeRuleEvent Class

  • Last UpdatedNov 18, 2025
  • 5 minute read
AFTimeRuleEvent Class
An event generated by a time rule

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.TimeAFTimeRuleEvent

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public sealed class AFTimeRuleEvent : IAFTimePeriod, 
	IComparable, IComparable<AFTimeRuleEvent>, IEquatable<AFTimeRuleEvent>
Public NotInheritable Class AFTimeRuleEvent
	Implements IAFTimePeriod, IComparable, IComparable(Of AFTimeRuleEvent), 
	IEquatable(Of AFTimeRuleEvent)

Dim instance As AFTimeRuleEvent
public ref class AFTimeRuleEvent sealed : IAFTimePeriod, 
	IComparable, IComparable<AFTimeRuleEvent^>, IEquatable<AFTimeRuleEvent^>
[<SealedAttribute>]
type AFTimeRuleEvent =  
    class
        interface IAFTimePeriod
        interface IComparable
        interface IComparable<AFTimeRuleEvent>
        interface IEquatable<AFTimeRuleEvent>
    end

The AFTimeRuleEvent type exposes the following members.

Constructors

  NameDescription
Public method
AFTimeRuleEvent
Initializes a new instance of the class with default values.
Public method
AFTimeRuleEvent(AFTime)
Initializes a new instance of the class with the specified values.
Public method
AFTimeRuleEvent(IAFTimePeriod)
Initializes a new instance of the class with the specified values.
Public method
AFTimeRuleEvent(AFTime, AFTime)
Initializes a new instance of the class with the specified values.
Public method
AFTimeRuleEvent(AFTime, AFTime, Object)
Initializes a new instance of the class with the specified values.

Properties

  NameDescription
Public property
AdditionalInfo
Sets and returns the additional info property.
Public property
Duration
This is a read-only property which returns the period's StartTime and EndTime values as a time range.
Public property
EndTime
This read-only property represents the end time of the period.
Public property
StartTime
This read-only property represents the start time of the period.
Public property
TimeRange
This is a read-only property which returns the period's StartTime and EndTime values as a time range.

Methods

  NameDescription
Public method
CompareTo(Object)
Compares this instance with a specified Object.
Public method
CompareTo(AFTimeRuleEvent)
Compares this instance with a specified AFTimeRuleEvent.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
Equals(AFTimeRuleEvent)
Indicates whether the current object is equal to another object of the same type.
Public method
GetHashCode
Gets the hash code for this instance of the object which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
SetEndTime
Set the time that represents the time that the period ended.
Public method
SetStartTime
Set the time that represents the time that the period started.
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)

Operators

  NameDescription
Public operatorStatic member
Equality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic member
GreaterThan
The greater than relation operator (>) compares its operands to determine which one is greater than the other.
Public operatorStatic member
GreaterThanOrEqual
The greater than or equal relation operator (>=) compares its operands to determine which one is greater than or equal to the other.
Public operatorStatic member
Inequality
The inequality operator (!=) compares its operands to determine if they are not equal.
Public operatorStatic member
LessThan
The less than relation operator (<) compares its operands to determine which one is less than the other.
Public operatorStatic member
LessThanOrEqual
The less than or equal relation operator (<=) compares its operands to determine which one is less than or equal to the other.

Version Information

AFSDK


See Also

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