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

AF SDK Reference

AFTimeRuleEvents Class

  • Last UpdatedNov 18, 2025
  • 4 minute read
AFTimeRuleEvents Class
A collection of events generated by time rules

Inheritance Hierarchy

SystemObject
  System.Collections.ObjectModelCollectionAFTimeRuleEvent
    OSIsoft.AF.TimeAFTimeRuleEvents

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

Syntax

[SerializableAttribute]
public sealed class AFTimeRuleEvents : Collection<AFTimeRuleEvent>
<SerializableAttribute>
Public NotInheritable Class AFTimeRuleEvents
	Inherits Collection(Of AFTimeRuleEvent)

Dim instance As AFTimeRuleEvents
[SerializableAttribute]
public ref class AFTimeRuleEvents sealed : public Collection<AFTimeRuleEvent^>
[<SealedAttribute>]
[<SerializableAttribute>]
type AFTimeRuleEvents =  
    class
        inherit Collection<AFTimeRuleEvent>
    end

The AFTimeRuleEvents type exposes the following members.

Constructors

  NameDescription
Public method
AFTimeRuleEvents
Creates a new list of time rule events.

Properties

  NameDescription
Public property
AllowDuplicatedItems
Sets and returns if a duplicated item is allowed
Public property
Count
Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionAFTimeRuleEvent.)
Public property
IsSorted
Sets and returns if the collection is sorted.
Public property
Item
Gets or sets the element at the specified index.
(Inherited from CollectionAFTimeRuleEvent.)

Methods

  NameDescription
Public method
Add(T)
Adds an object to the end of the CollectionT.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
Add(AFTimeRuleEvent)
Adds a collection of time rule events to the collection
Public method
Clear
Removes all elements from the CollectionT.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
Contains
Determines whether an element is in the CollectionT.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
CopyTo
Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetEnumerator
Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
IndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
Insert
Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
Remove
Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
RemoveAt
Removes the element at the specified index of the CollectionT.
(Inherited from CollectionAFTimeRuleEvent.)
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Version Information

AFSDK


See Also

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