UniversalComparer(T).Initialize Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initialize the UniversalComparerT with a different sort order.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void Initialize( string orderBy )
Public Sub Initialize ( orderBy As String ) Dim instance As UniversalComparer Dim orderBy As String instance.Initialize(orderBy)
public: void Initialize( String^ orderBy )
member Initialize : orderBy : string -> unit
Parameters
- orderBy
- Type: SystemString
The sort criteria used when comparing objects. See UniversalComparerT(String) for more information about this parameter.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The orderBy parameter is or empty. |
| ArgumentException | One of the property names in the specified orderBy parameter could not be found. |
Remarks
This method can be called after the UniversalComparerT has
been created to initialize with a different sort order.