AFGroupingRequest(TGroup).BinBy(TBin) Method (String, IEnumerable(TBin))
- Last UpdatedSep 18, 2024
- PI System
- AF SDK 2024
- Developer
Creates a compound grouping with this aggregate partitioned into bins of the specified field.
Namespace: OSIsoft.AF.Data.Aggregate
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156
Syntax
public AFCompoundPartitioningRequest<AFRange<TBin>, TGroup> BinBy<TBin>( string field, IEnumerable<TBin> bins ) where TBin : Object, IComparable<TBin>
Public Function BinBy(Of TBin As {Object, IComparable(Of TBin)}) ( field As String, bins As IEnumerable(Of TBin) ) As AFCompoundPartitioningRequest(Of AFRange(Of TBin), TGroup) Dim instance As AFGroupingRequest Dim field As String Dim bins As IEnumerable(Of TBin) Dim returnValue As AFCompoundPartitioningRequest(Of AFRange(Of TBin), TGroup) returnValue = instance.BinBy(field, bins)
public: generic<typename TBin> where TBin : Object, IComparable<TBin> AFCompoundPartitioningRequest<AFRange<TBin>^, TGroup>^ BinBy( String^ field, IEnumerable<TBin>^ bins )
member BinBy : field : string * bins : IEnumerable<'TBin> -> AFCompoundPartitioningRequest<AFRange<'TBin>, 'TGroup> when 'TBin : Object and IComparable<'TBin>
Parameters
- field
- Type: System.String
The field whose values should be binned. - bins
- Type: System.Collections.Generic.IEnumerable<TBin>
The endpoints of the bins.
Type Parameters
- TBin
- The type of bins to partition by.
Return Value
Type: AFCompoundPartitioningRequest<AFRange<TBin>, TGroup>An aggregate request grouped by a compound key of two fields.