AFEventFrameSearch Constructor (AFDatabase, String, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates an instance of an AFEventFrameSearch to search
for AFEventFrame objects using the specified search query
string.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFEventFrameSearch( AFDatabase database, string name, string query )
Public Sub New ( database As AFDatabase, name As String, query As String ) Dim database As AFDatabase Dim name As String Dim query As String Dim instance As New AFEventFrameSearch(database, name, query)
public: AFEventFrameSearch( AFDatabase^ database, String^ name, String^ query )
new : database : AFDatabase * name : string * query : string -> AFEventFrameSearch
Parameters
- database
- Type: OSIsoft.AFAFDatabase
The AFDatabase to be searched by the query. This parameter will initialize the Database property. - name
- Type: SystemString
The SearchName associated with the created search object. This is only informational and does not affect the searches. - query
- Type: SystemString
The search query string. This will be parsed into tokens and initialize the TokenCollection property. Strings will be interpreted with the Parse(String, AFTime, IFormatProvider) method so that relative formats with intervals ("*", "T+3h", etc.) are also supported. Relative time intervals are based on the database's QueryDate.