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

AF SDK Reference

AFTimeRuleEvent Constructor (IAFTimePeriod)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeRuleEvent Constructor (IAFTimePeriod)
Initializes a new instance of the class with the specified values.
Initializes a new instance of a time rule event for the specified IAFTimePeriod.

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

Syntax

public AFTimeRuleEvent(
	IAFTimePeriod timePeriod
)
Public Sub New ( 
	timePeriod As IAFTimePeriod
)

Dim timePeriod As IAFTimePeriod

Dim instance As New AFTimeRuleEvent(timePeriod)
public:
AFTimeRuleEvent(
	IAFTimePeriod^ timePeriod
)
new : 
        timePeriod : IAFTimePeriod -> AFTimeRuleEvent

Parameters

timePeriod
Type: OSIsoft.AF.TimeIAFTimePeriod
The IAFTimePeriod used to initialize the new time rule event.

Remarks

The instance of the class created using this constructor does not belong to any collection. To add the object to a collection, use the collection's Add method.

Version Information

AFSDK


See Also

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