AFDataReference.CreateConfig Method (AFBaseElement, Boolean, 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 of the element, and optionally, its children.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static int CreateConfig( AFBaseElement baseElement, bool includeChildElements, EventHandler<AFProgressEventArgs> eventHandler )
Public Shared Function CreateConfig ( baseElement As AFBaseElement, includeChildElements As Boolean, eventHandler As EventHandler(Of AFProgressEventArgs) ) As Integer Dim baseElement As AFBaseElement Dim includeChildElements As Boolean Dim eventHandler As EventHandler(Of AFProgressEventArgs) Dim returnValue As Integer returnValue = AFDataReference.CreateConfig(baseElement, includeChildElements, eventHandler)
public: static int CreateConfig( AFBaseElement^ baseElement, bool includeChildElements, EventHandler<AFProgressEventArgs^>^ eventHandler )
static member CreateConfig : baseElement : AFBaseElement * includeChildElements : bool * eventHandler : EventHandler<AFProgressEventArgs> -> int
Parameters
- baseElement
- Type: OSIsoft.AF.AssetAFBaseElement
The element containing the attributes. - includeChildElements
- Type: SystemBoolean
If true, includes the child elements of the specified element. - eventHandler
- Type: SystemEventHandlerAFProgressEventArgs
Delegate used to receive progress indication on operations.
Return Value
Type: Int32Returns the number of data reference configurations that were modified.