AGI STK VGT 11 Send comments on this topic.
IsTypeSupported Method (IAgCrdnEventFactory)
See Also  Example
EType





Description

Returns whether the specified type is supported.

Syntax

[Visual Basic .NET]
Public Function IsTypeSupported( _
   ByVal EType As AgECrdnEventType _
) As Boolean

[C#]
public bool IsTypeSupported(
AgECrdnEventType EType
);

[Managed C++]
public: bool IsTypeSupported(
AgECrdnEventType EType
);

[Java]
public bool isTypeSupported(
AgECrdnEventType EType
);

[Unmanaged C++]
public: HRESULT IsTypeSupported(
AgECrdnEventType EType,
VARIANT_BOOL * ReturnValue
);

Parameters

EType
Member Value Description
eCrdnEventTypeUnknown -1 Unknown or unsupported time instant types
eCrdnEventTypeEpoch 0 Time instant set at specified date/time
eCrdnEventTypeExtremum 1 Determines time of global minimum or maximum of specified scalar calculation.
eCrdnEventTypeFromInterval 2 Start or stop time of selected reference interval
eCrdnEventTypeSignaled 3 Determines what time is recorded at target clock location by performing signal transmission of original time instant between base and target clock locations.
eCrdnEventTypeTimeOffset 4 Time instant at fixed offset from specified reference time instant
eCrdnEventTypeSmartEpoch 5 A smart epoch.

Example

Determine if the specified event type is supported.
[C#] Copy Code
// Check if the specified event type is supported. 
if (provider.Events.Factory.IsTypeSupported(eventType)) 

    //Create an Event with the supported Type 
    IAgCrdnEvent @event = provider.Events.Factory.Create( 
        "MyEvent"string.Empty, 
        eventType); 

 

Determine if the specified event type is supported.
[Visual Basic .NET] Copy Code
' Check if the specified event type is supported.
If provider.Events.Factory.IsTypeSupported(eventType) Then
    'Create an Event with the supported Type
    Dim [event] As IAgCrdnEvent = provider.Events.Factory.Create("MyEvent", String.Empty, eventType)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1