STK Vector Geometry ToolSend comments on this topic.
IsTypeSupported Method (IAgCrdnEventFactory)
See Also
EType
Windows





Windows & Linux

Description

Returns whether the specified type is supported.

Syntax

[Visual Basic .NET]
Public Function IsTypeSupported( _
    ByVal EType As AgECrdnEventType _
) As Boolean
[C#]
public bool IsTypeSupported(
    AgECrdnEventType EType
);
[Managed C++]
public: bool IsTypeSupported(
    AgECrdnEventType EType
);
[Unmanaged C++]
public: HRESULT IsTypeSupported(
    AgECrdnEventType EType,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool isTypeSupported(
    AgECrdnEventType EType
);
[Python - STK API ]
def IsTypeSupported(self, EType:"AgECrdnEventType") -> bool:

Parameters

EType

See Also

Example

Determine if the specified event type is supported.
[C#]
// Check if the specified event type is supported.
if (provider.Events.Factory.IsTypeSupported(eventType))
{
    //Create an Event with the supported Type
    IAgCrdnEvent @event = provider.Events.Factory.Create(
        "MyEvent", string.Empty,
        eventType);
}
Determine if the specified event type is supported.
[Visual Basic .NET]
' Check if the specified event type is supported.
If provider.Events.Factory.IsTypeSupported(eventType) Then
	'Create an Event with the supported Type
	Dim [event] As IAgCrdnEvent = provider.Events.Factory.Create("MyEvent", String.Empty, eventType)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.