AFTimeIntervalDefinition Structure
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Time interval definition structure.

Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
[SerializableAttribute] public struct AFTimeIntervalDefinition : IEquatable<AFTimeIntervalDefinition>
<SerializableAttribute> Public Structure AFTimeIntervalDefinition Implements IEquatable(Of AFTimeIntervalDefinition) Dim instance As AFTimeIntervalDefinition
[SerializableAttribute] public value class AFTimeIntervalDefinition : IEquatable<AFTimeIntervalDefinition>
[<SealedAttribute>] [<SerializableAttribute>] type AFTimeIntervalDefinition = struct interface IEquatable<AFTimeIntervalDefinition> end
The AFTimeIntervalDefinition type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| AFTimeIntervalDefinition |
Creates an instance of an AFTimeIntervalDefinition for the specified
AFTimeRange and number of intervals.
|
Properties
| Name | Description | |
|---|---|---|
| NumberOfIntervals |
The number of intervals within the Range.
| |
| Range |
The AFTimeRange of the interval definition.
|
Methods
| Name | Description | |
|---|---|---|
| Equals(Object) |
Determines whether the specified Object is equal to the current object.
(Overrides ValueTypeEquals(Object).) | |
| Equals(AFTimeIntervalDefinition) |
Indicates whether the current object is equal to another object of the same type.
| |
| 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 ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString |
Returns a String that represents the current object.
(Overrides ValueTypeToString.) |
Operators
| Name | Description | |
|---|---|---|
| Equality |
The equality operator (==) compares its operands to determine if they are equal.
| |
| Inequality |
The inequality operator (!=) compares its operands to determine if they are not equal.
|
Remarks
This structure defines an interval definition returned by the
GetEvenTimeIntervalDefinitions(AFTimeRange) method.