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

AF SDK Reference

AFLibrary.Import Method (AFDatabase, EventHandler(AFProgressEventArgs))

AFLibrary.Import Method (AFDatabase, EventHandler(AFProgressEventArgs))

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFLibrary.Import Method (AFDatabase, EventHandler(AFProgressEventArgs))
Imports the library into the PISystem and the specified AFDatabase.

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

Syntax

public void Import(
	AFDatabase database,
	EventHandler<AFProgressEventArgs> eventHandler
)
Public Sub Import ( 
	database As AFDatabase,
	eventHandler As EventHandler(Of AFProgressEventArgs)
)

Dim instance As AFLibrary
Dim database As AFDatabase
Dim eventHandler As EventHandler(Of AFProgressEventArgs)

instance.Import(database, eventHandler)
public:
void Import(
	AFDatabase^ database, 
	EventHandler<AFProgressEventArgs^>^ eventHandler
)
member Import : 
        database : AFDatabase * 
        eventHandler : EventHandler<AFProgressEventArgs> -> unit 

Parameters

database
Type: OSIsoft.AFAFDatabase
The AFDatabase to import this library into. If , the library is imported into all databases in the PISystem.
eventHandler
Type: SystemEventHandlerAFProgressEventArgs
Progress handler for import.

Remarks

The library is imported into the current PISystem and the specified AFDatabase. The imported library changes to the database are automatically checked in.

Important note Important
During a library import the database Name, Description, or ExtendedProperties are not modified.

Version Information

AFSDK

Supported in: 3.1.1

See Also

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