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





Windows & Linux

Description

Returns whether the specified type is supported.

Syntax

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

Parameters

EType

See Also

Example

Determine if the specified event array type is supported.
[C#]
// Check if the specified event array type is supported.
if (provider.EventArrays.Factory.IsTypeSupported(eventArrayType))
{
    //Create an EventArray with the supported Type
    IAgCrdnEventArray eventArray = provider.EventArrays.Factory.Create(
        "MyEventArray", string.Empty,
        eventArrayType);
}
Determine if the specified event array type is supported.
[Visual Basic .NET]
' Check if the specified event array type is supported.
If provider.EventArrays.Factory.IsTypeSupported(eventArrayType) Then
	'Create an EventArray with the supported Type
	Dim eventArray As IAgCrdnEventArray = provider.EventArrays.Factory.Create("MyEventArray", String.Empty, eventArrayType)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.