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






Windows & Linux

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
MemberValueDescription
eCrdnEventTypeUnknown-1Unknown or unsupported time instant types
eCrdnEventTypeEpoch0Time instant set at specified date/time
eCrdnEventTypeExtremum1Determines time of global minimum or maximum of specified scalar calculation.
eCrdnEventTypeFromInterval2Start or stop time of selected reference interval
eCrdnEventTypeSignaled3Determines what time is recorded at target clock location by performing signal transmission of original time instant between base and target clock locations.
eCrdnEventTypeTimeOffset4Time instant at fixed offset from specified reference time instant
eCrdnEventTypeSmartEpoch5A 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

© 2019 Analytical Graphics, Inc. All Rights Reserved.