Description
Represents a collection of intervals.
Public Properties
Count | Returns a number of elements in collection. |
Item | Given an index, returns an element in the collection. |
Example
Extract data from IAgDrIntervalCollection (generic)
[C#] |
---|
// Enumerate IAgDrIntervalCollection collection
foreach (IAgDrInterval interval in intervals)
{
Console.WriteLine("{0} - {1}", interval.StartTime, interval.StopTime);
foreach (IAgDrDataSet dataset in interval.DataSets)
{
Array values = dataset.GetValues();
Console.WriteLine("{0}", dataset.ElementName);
foreach (object value in values)
{
Console.WriteLine("\t{0}", value.ToString());
}
}
}
|
|
Extract data from IAgDrIntervalCollection (generic)
[Visual Basic .NET] |
---|
' Enumerate IAgDrIntervalCollection collection
For Each interval As IAgDrInterval In intervals
Console.WriteLine("{0} - {1}", interval.StartTime, interval.StopTime)
For Each dataset As IAgDrDataSet In interval.DataSets
Dim values As Array = dataset.GetValues()
Console.WriteLine("{0}", dataset.ElementName)
For Each value As Object In values
Console.WriteLine(vbTab & "{0}", value.ToString())
Next
Next
Next
|
|