Description
Return computed interval if it exists.
Syntax
Example
Determines the start
and stop times of the event interval.
[C#] |
Copy Code
|
IAgCrdnEventInterval eventInterval = provider.EventIntervals["AvailabilityTimeSpan"];
IAgCrdnEventIntervalResult interval = eventInterval.FindInterval();
if (interval.IsValid)
{
Console.WriteLine("Interval Start: " + interval.Interval.Start);
Console.WriteLine("Interval Stop: " + interval.Interval.Stop);
}
|
|
Determines the event
intervals contained in the interval collection.
[C#] |
Copy Code
|
IAgCrdnEventIntervalCollection intervalCollection = provider.EventIntervalCollections["LightingIntervals"];
IAgCrdnIntervalsVectorResult intervalResult = intervalCollection.FindIntervalCollection();
if (intervalResult.IsValid)
{
foreach (IAgCrdnIntervalCollection intervals in intervalResult.IntervalCollections)
{
foreach (IAgCrdnInterval interval in intervals)
{
Console.WriteLine("Start: " + interval.Start);
Console.WriteLine("Start: " + interval.Stop);
}
}
}
|
|
Determines the start
and stop times of the event interval.
[Visual Basic .NET] |
Copy Code
|
Dim eventInterval As
IAgCrdnEventInterval = provider.EventIntervals("AvailabilityTimeSpan")
Dim interval As IAgCrdnEventIntervalResult =
eventInterval.FindInterval()
If interval.IsValid Then
Console.WriteLine("Interval Start: " + interval.Interval.Start)
Console.WriteLine("Interval Stop: " + interval.Interval.[Stop])
End If
|
|
Determines the event
intervals contained in the interval collection.
[Visual Basic .NET] |
Copy Code
|
Dim intervalCollection As IAgCrdnEventIntervalCollection =
provider.EventIntervalCollections("LightingIntervals")
Dim intervalResult As IAgCrdnIntervalsVectorResult =
intervalCollection.FindIntervalCollection()
If intervalResult.IsValid Then
#If Not
CSToJava Then
For
Each intervals As IAgCrdnIntervalCollection In intervalResult.IntervalCollections
#Else
#End If
For Each interval
As IAgCrdnInterval In intervals
Console.WriteLine("Start:
" + interval.Start)
Console.WriteLine("Start:
" + interval.[Stop])
Next
Next
End If
|
|
See Also