AFLibrary.Import Method (AFDatabase, EventHandler(AFProgressEventArgs))
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.
| During a library import the database Name, Description, or ExtendedProperties are not modified. |