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





Description

Returns whether the specified type is supported.

Syntax

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

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

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

[Java]
public bool isTypeSupported(
AgECrdnEventIntervalCollectionType EType
);

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

Parameters

EType
Member Value Description
eCrdnEventIntervalCollectionTypeUnknown -1 Unknown or unsupported interval collection types
eCrdnEventIntervalCollectionTypeLighting 0 Defined by computing sunlight, penumbra and umbra intervals as seen at specified location using specified selection of eclipsing bodies.
eCrdnEventIntervalCollectionTypeSignaled 1 Determines what interval list collection is recorded at target clock location by performing signal transmission of original interval list collection between base and target clock locations.
eCrdnEventIntervalCollectionTypeCondition 2 Interval collection containing intervals during which condition set is satisfied.

Example

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

    //Create an EventIntervalCollection with the supported Type 
    IAgCrdnEventIntervalCollection eventIntervalCollection = provider.EventIntervalCollections.Factory.Create( 
        "MyEventIntervalCollection"string.Empty, 
        eventIntervalCollectionType); 

 

Determine if the specified event interval collection type is supported.
[Visual Basic .NET] Copy Code
' Check if the specified event interval collection type is supported.
If provider.EventIntervalCollections.Factory.IsTypeSupported(eventIntervalCollectionType) Then
    'Create an EventIntervalCollection with the supported Type
    Dim eventIntervalCollection As IAgCrdnEventIntervalCollection = provider.EventIntervalCollections.Factory.Create("MyEventIntervalCollection", String.Empty, eventIntervalCollectionType)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1