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