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

AF SDK Reference

IAFSearch(T).TryFindSearchTokens Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
IAFSearch(T).TryFindSearchTokens Method
Find the AFSearchToken list associated with the specified AFSearchFilter.

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

Syntax

bool TryFindSearchTokens(
	AFSearchFilter filter,
	out IList<AFSearchToken> tokens
)
Function TryFindSearchTokens ( 
	filter As AFSearchFilter,
	<OutAttribute> ByRef tokens As IList(Of AFSearchToken)
) As Boolean

Dim instance As IAFSearch
Dim filter As AFSearchFilter
Dim tokens As IList(Of AFSearchToken)
Dim returnValue As Boolean

returnValue = instance.TryFindSearchTokens(filter, 
	tokens)
bool TryFindSearchTokens(
	AFSearchFilter filter, 
	[OutAttribute] IList<AFSearchToken>^% tokens
)
abstract TryFindSearchTokens : 
        filter : AFSearchFilter * 
        tokens : IList<AFSearchToken> byref -> bool 

Parameters

filter
Type: OSIsoft.AF.SearchAFSearchFilter
The AFSearchFilter for the desired search tokens.
tokens
Type: System.Collections.GenericIListAFSearchToken
The list of found tokens that matches the specified filter. If not found, then an empty list is returned for this parameter.

Return Value

Type: Boolean
Returns if any tokens that matches the specified filter were found. Otherwise, is returned.

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

See Also

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