AFEventFrame Constructor (AFDatabase, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new instance of the class with the specified name.
Namespace: OSIsoft.AF.EventFrame
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFEventFrame( AFDatabase database, string name )
Public Sub New ( database As AFDatabase, name As String ) Dim database As AFDatabase Dim name As String Dim instance As New AFEventFrame(database, name)
public: AFEventFrame( AFDatabase^ database, String^ name )
new : database : AFDatabase * name : string -> AFEventFrame
Parameters
- database
- Type: OSIsoft.AFAFDatabase
The new AFEventFrame is added to the specified AFDatabase. - name
- Type: SystemString
The name of the newly created instance of the class. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.
Remarks
The instance of the class created using this constructor does not belong
to any collection. To add the object to a collection, use the collection's
Add method.