AFDataReference.CreateConfig Method (PISystem, 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 PI System.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static int CreateConfig( PISystem system, EventHandler<AFProgressEventArgs> eventHandler )
Public Shared Function CreateConfig ( system As PISystem, eventHandler As EventHandler(Of AFProgressEventArgs) ) As Integer Dim system As PISystem Dim eventHandler As EventHandler(Of AFProgressEventArgs) Dim returnValue As Integer returnValue = AFDataReference.CreateConfig(system, eventHandler)
public: static int CreateConfig( PISystem^ system, EventHandler<AFProgressEventArgs^>^ eventHandler )
static member CreateConfig : system : PISystem * eventHandler : EventHandler<AFProgressEventArgs> -> int
Parameters
- system
- Type: OSIsoft.AFPISystem
The PI System containing the attributes. - eventHandler
- Type: SystemEventHandlerAFProgressEventArgs
Delegate used to receive progress indication on operations.
Return Value
Type: Int32Returns the number of data reference configurations that were modified.