AFTimeRuleEvents Class
- Last UpdatedNov 18, 2025
- 4 minute read
- PI System
- AF SDK 2024 R2
- Developer
A collection of events generated by time rules
Inheritance Hierarchy
SystemObject
System.Collections.ObjectModelCollectionAFTimeRuleEvent
OSIsoft.AF.TimeAFTimeRuleEvents
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
| Name | Description | |
|---|---|---|
| AFTimeRuleEvents |
Creates a new list of time rule events.
|
Properties
| Name | Description | |
|---|---|---|
| AllowDuplicatedItems |
Sets and returns if a duplicated item is allowed
| |
| Count | Gets the number of elements actually contained in the CollectionT. (Inherited from CollectionAFTimeRuleEvent.) | |
| IsSorted |
Sets and returns if the collection is sorted.
| |
| Item | Gets or sets the element at the specified index. (Inherited from CollectionAFTimeRuleEvent.) |
Methods
| Name | Description | |
|---|---|---|
| Add(T) | Adds an object to the end of the CollectionT. (Inherited from CollectionAFTimeRuleEvent.) | |
| Add(AFTimeRuleEvent) |
Adds a collection of time rule events to the collection
| |
| Clear | Removes all elements from the CollectionT. (Inherited from CollectionAFTimeRuleEvent.) | |
| Contains | Determines whether an element is in the CollectionT. (Inherited from CollectionAFTimeRuleEvent.) | |
| CopyTo | Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from CollectionAFTimeRuleEvent.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetEnumerator | Returns an enumerator that iterates through the CollectionT. (Inherited from CollectionAFTimeRuleEvent.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT. (Inherited from CollectionAFTimeRuleEvent.) | |
| Insert | Inserts an element into the CollectionT at the specified index. (Inherited from CollectionAFTimeRuleEvent.) | |
| Remove | Removes the first occurrence of a specific object from the CollectionT. (Inherited from CollectionAFTimeRuleEvent.) | |
| RemoveAt | Removes the element at the specified index of the CollectionT. (Inherited from CollectionAFTimeRuleEvent.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |