STK Vector Geometry ToolSend comments on this topic.
IsTypeSupported Method (IAgCrdnEventIntervalCollectionFactory)
See Also
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
);
[Unmanaged C++]
public: HRESULT IsTypeSupported(
    AgECrdnEventIntervalCollectionType EType,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool isTypeSupported(
    AgECrdnEventIntervalCollectionType EType
);
[Python - STK API ]
def IsTypeSupported(self, EType:"AgECrdnEventIntervalCollectionType") -> bool:

Parameters

EType

See Also

Example

Determine if the specified event interval collection type is supported.
[C#]
// 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]
' 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
© 2024 Analytical Graphics, Inc. All Rights Reserved.