AGI STK VGT 11Send comments on this topic.
IsTypeSupported Method (IAgCrdnEventIntervalCollectionFactory)
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 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
MemberValueDescription
eCrdnEventIntervalCollectionTypeUnknown-1Unknown or unsupported interval collection types
eCrdnEventIntervalCollectionTypeLighting0Defined by computing sunlight, penumbra and umbra intervals as seen at specified location using specified selection of eclipsing bodies.
eCrdnEventIntervalCollectionTypeSignaled1Determines 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.
eCrdnEventIntervalCollectionTypeCondition2Interval 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

© 2018 Analytical Graphics, Inc. All Rights Reserved.