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

AF SDK Reference

AFSearchTokenCollection Class

  • Last UpdatedNov 18, 2025
  • 5 minute read
AFSearchTokenCollection Class
A collection of AFSearchTokenBase objects that will be used in an AFSearch.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.SearchAFSearchTokenCollection

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

Syntax

[SerializableAttribute]
public sealed class AFSearchTokenCollection : IList<AFSearchTokenBase>, 
	ICollection<AFSearchTokenBase>, IEnumerable<AFSearchTokenBase>, IEnumerable
<SerializableAttribute>
Public NotInheritable Class AFSearchTokenCollection
	Implements IList(Of AFSearchTokenBase), ICollection(Of AFSearchTokenBase), 
	IEnumerable(Of AFSearchTokenBase), IEnumerable

Dim instance As AFSearchTokenCollection
[SerializableAttribute]
public ref class AFSearchTokenCollection sealed : IList<AFSearchTokenBase^>, 
	ICollection<AFSearchTokenBase^>, IEnumerable<AFSearchTokenBase^>, IEnumerable
[<SealedAttribute>]
[<SerializableAttribute>]
type AFSearchTokenCollection =  
    class
        interface IList<AFSearchTokenBase>
        interface ICollection<AFSearchTokenBase>
        interface IEnumerable<AFSearchTokenBase>
        interface IEnumerable
    end

The AFSearchTokenCollection type exposes the following members.

Properties

  NameDescription
Public property
Count
Gets the number of elements contained in the ListT.
Public property
IsReadOnly
Gets a value indicating whether the IList is read-only.
Public property
Item
Gets or sets the element at the specified index.

Methods

  NameDescription
Public method
Add
Adds an object to the end of the ListT.
Public method
Clear
Removes all elements from the ListT.
Public method
Contains
Determines whether an element is in the ListT.
Public method
CopyTo
Copies the entire ListT to a compatible one-dimensional array, starting at the specified index of the target array.
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetEnumerator
Returns an enumerator that iterates through the ListT.
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
IndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire ListT.
Public method
Insert
Inserts an element into the ListT at the specified index.
Public method
Remove
Removes the first occurrence of a specific object from the ListT.
Public method
RemoveAt
Removes the element at the specified index of the ListT.
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)
Public method
TryFindSearchToken
Find the AFSearchTokenBase associated with the specified AFSearchFilter.
Public method
TryFindSearchTokens
Find the AFSearchTokenBase list associated with the specified AFSearchFilter.

Extension Methods

  NameDescription
Public Extension MethodCode example
ChunkedByAFSearchTokenBase
This extension method breaks up search results into chunks to make it easier to page through and process IEnumerableT collections in chunks.
(Defined by AFSDKExtension.)

Remarks

This class represents a collection of AFSearchTokenBase objects that will be used in an AFSearch. This class cannot be instantiated.

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

See Also

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