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

AF SDK Reference

AFEventFrameSearch Constructor (AFDatabase, String, String)

AFEventFrameSearch Constructor (AFDatabase, String, String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEventFrameSearch Constructor (AFDatabase, String, String)
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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5

See Also

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