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






Windows & Linux

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 
[C#]
public System.Object FindStopTime();
[Managed C++]
public: VARIANT FindStopTime();
[Java]
public VARIANT findStopTime();
[Unmanaged C++]
public: HRESULT FindStopTime(
    VARIANT * pRetVal
);

See Also

Example

Convert the start and stop times of the interval into a time.
[C#]
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]
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)
© 2019 Analytical Graphics, Inc. All Rights Reserved.