AGI STK VGT 11Send comments on this topic.
IsTypeSupported Method (IAgCrdnEventIntervalFactory)
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 AgECrdnEventIntervalType _
) As Boolean
[C#]
public bool IsTypeSupported(
   AgECrdnEventIntervalType EType
);
[Managed C++]
public: bool IsTypeSupported(
   AgECrdnEventIntervalType EType
);
[Java]
public bool isTypeSupported(
   AgECrdnEventIntervalType EType
);
[Unmanaged C++]
public: HRESULT IsTypeSupported(
   AgECrdnEventIntervalType EType,
   VARIANT_BOOL * ReturnValue
);

Parameters

EType
MemberValueDescription
eCrdnEventIntervalTypeUnknown-1Unknown or unsupported interval types
eCrdnEventIntervalTypeFixed0Interval defined between two explicitly specified start and stop times.
eCrdnEventIntervalTypeFixedDuration1Interval of fixed duration specified using start and stop offsets relative to specified reference time instant.
eCrdnEventIntervalTypeBetweenTimeInstants2Interval between specified start and stop time instants.
eCrdnEventIntervalTypeFromIntervalList3Interval created from specified interval list by using one of several selection methods.
eCrdnEventIntervalTypeScaled4Interval defined by scaling original interval using either absolute or relative scale.
eCrdnEventIntervalTypeSignaled5Determines an interval recorded at a target clock location by performing signal transmission.
eCrdnEventIntervalTypeTimeOffset6Interval defined by shifting specified reference interval by fixed time offset.
eCrdnEventIntervalTypeSmartInterval7A smart interval.

Example

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

    //Create an EventInterval with the supported Type 
    IAgCrdnEventInterval eventInterval = provider.EventIntervals.Factory.Create( 
        "MyEventInterval"string.Empty, 
        eventIntervalType); 

 

Determine if the specified event interval type is supported.
[Visual Basic .NET]Copy Code
' Check if the specified event interval type is supported.
If provider.EventIntervals.Factory.IsTypeSupported(eventIntervalType) Then
    'Create an EventInterval with the supported Type
    Dim eventInterval As IAgCrdnEventInterval = provider.EventIntervals.Factory.Create("MyEventInterval", String.Empty, eventIntervalType)
End If

See Also

© 2019 Analytical Graphics, Inc. All Rights Reserved.