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

Parameters

EType

See Also

Example

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