AGI STK VGT 11 Send comments on this topic.
FindStopTime Method (IAgCrdnEventIntervalSmartInterval)
See Also  Example





Description

Finds a stop time of the interval. An exception is thrown if the stop time cannot be determined from the interval's current state.

Syntax

[Visual Basic .NET]
Public Function FindStopTime() As System.Object

[C#]
public System.Object FindStopTime();

[Managed C++]
public: VARIANT FindStopTime();

[Java]
public Variant findStopTime();

[Unmanaged C++]
public: HRESULT FindStopTime(
VARIANT * ReturnValue
);

Example

Convert the start and stop times of the interval into a time.
[C#] Copy Code
smartInterval.SetStartTimeAndDuration("Now""+100 day"); 
object startTime = smartInterval.FindStartTime(); 
object stopTime = smartInterval.FindStopTime(); 
 
Console.WriteLine("StartTime = {0}, StopTime = {1}", startTime, stopTime); 
 

Convert the start and stop times of the interval into a time.
[Visual Basic .NET] Copy Code
smartInterval.SetStartTimeAndDuration("Now", "+100 day")
Dim startTime As Object = smartInterval.FindStartTime()
Dim stopTime As Object = smartInterval.FindStopTime()

Console.WriteLine("StartTime = {0}, StopTime = {1}", startTime, stopTime)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1