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





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
Member Value Description
eCrdnEventIntervalTypeUnknown -1 Unknown or unsupported interval types
eCrdnEventIntervalTypeFixed 0 Interval defined between two explicitly specified start and stop times.
eCrdnEventIntervalTypeFixedDuration 1 Interval of fixed duration specified using start and stop offsets relative to specified reference time instant.
eCrdnEventIntervalTypeBetweenTimeInstants 2 Interval between specified start and stop time instants.
eCrdnEventIntervalTypeFromIntervalList 3 Interval created from specified interval list by using one of several selection methods.
eCrdnEventIntervalTypeScaled 4 Interval defined by scaling original interval using either absolute or relative scale.
eCrdnEventIntervalTypeSignaled 5 Determines an interval recorded at a target clock location by performing signal transmission.
eCrdnEventIntervalTypeTimeOffset 6 Interval defined by shifting specified reference interval by fixed time offset.
eCrdnEventIntervalTypeSmartInterval 7 A 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

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1