AFDataReference.CreateConfigEventFrames Method (AFDatabase, Object, Object, EventHandler(AFProgressEventArgs))
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Executes the create configuration function of the data references found
within the attributes and its children of a database.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static int CreateConfigEventFrames( AFDatabase database, Object startTime, Object endTime, EventHandler<AFProgressEventArgs> eventHandler )
Public Shared Function CreateConfigEventFrames ( database As AFDatabase, startTime As Object, endTime As Object, eventHandler As EventHandler(Of AFProgressEventArgs) ) As Integer Dim database As AFDatabase Dim startTime As Object Dim endTime As Object Dim eventHandler As EventHandler(Of AFProgressEventArgs) Dim returnValue As Integer returnValue = AFDataReference.CreateConfigEventFrames(database, startTime, endTime, eventHandler)
public: static int CreateConfigEventFrames( AFDatabase^ database, Object^ startTime, Object^ endTime, EventHandler<AFProgressEventArgs^>^ eventHandler )
static member CreateConfigEventFrames : database : AFDatabase * startTime : Object * endTime : Object * eventHandler : EventHandler<AFProgressEventArgs> -> int
Parameters
- database
- Type: OSIsoft.AFAFDatabase
The database containing the attributes. - startTime
- Type: SystemObject
The start time for the time range of event frames. - endTime
- Type: SystemObject
The end time for the time range of event frames. - eventHandler
- Type: SystemEventHandlerAFProgressEventArgs
Delegate used to receive progress indication on operations.
Return Value
Type: Int32Returns the number of data reference configurations that were modified.