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

AF SDK Reference

AFDataReference.CreateConfig Method (IList, Boolean, EventHandler(AFProgressEventArgs))

AFDataReference.CreateConfig Method (IList, Boolean, EventHandler(AFProgressEventArgs))

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDataReference.CreateConfig Method (IList, Boolean, EventHandler(AFProgressEventArgs))
Executes the create configuration function of the data references found within the list of attributes and or elements.

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

Syntax

public static int CreateConfig(
	IList list,
	bool includeChildElements,
	EventHandler<AFProgressEventArgs> eventHandler
)
Public Shared Function CreateConfig ( 
	list As IList,
	includeChildElements As Boolean,
	eventHandler As EventHandler(Of AFProgressEventArgs)
) As Integer

Dim list As IList
Dim includeChildElements As Boolean
Dim eventHandler As EventHandler(Of AFProgressEventArgs)
Dim returnValue As Integer

returnValue = AFDataReference.CreateConfig(list, 
	includeChildElements, eventHandler)
public:
static int CreateConfig(
	IList^ list, 
	bool includeChildElements, 
	EventHandler<AFProgressEventArgs^>^ eventHandler
)
static member CreateConfig : 
        list : IList * 
        includeChildElements : bool * 
        eventHandler : EventHandler<AFProgressEventArgs> -> int 

Parameters

list
Type: System.CollectionsIList
The collection containing the elements and or attribute.
includeChildElements
Type: SystemBoolean
If true, includes the child element in the list.
eventHandler
Type: SystemEventHandlerAFProgressEventArgs
Delegate used to receive progress indication on operations.

Return Value

Type: Int32
Returns the number of data reference configurations that were modified.

Version Information

AFSDK


See Also

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