AGI STK VGT 11Send comments on this topic.
IsTypeSupported Method (IAgCrdnConditionFactory)
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 AgECrdnConditionType _
) As Boolean
[C#]
public bool IsTypeSupported(
   AgECrdnConditionType EType
);
[Managed C++]
public: bool IsTypeSupported(
   AgECrdnConditionType EType
);
[Java]
public bool isTypeSupported(
   AgECrdnConditionType EType
);
[Unmanaged C++]
public: HRESULT IsTypeSupported(
   AgECrdnConditionType EType,
   VARIANT_BOOL * ReturnValue
);

Parameters

EType
MemberValueDescription
eCrdnConditionTypeUnknown-1Unknown or unsupported condition type
eCrdnConditionTypeScalarBounds0Condition placing bounds on specified scalar.
eCrdnConditionTypeCombined1Multiple conditiones on specified scalar.

Example

Determine if the specified condition type is supported.
[C#]Copy Code
// Check if the specified condition type is supported. 
if (provider.Conditions.Factory.IsTypeSupported(conditionType)) 

    //Create a Condition with the supported Type 
    IAgCrdnCondition condition = provider.Conditions.Factory.Create( 
        "MyCondition"string.Empty, 
        conditionType); 

 

Determine if the specified condition type is supported.
[Visual Basic .NET]Copy Code
' Check if the specified condition type is supported.
If provider.Conditions.Factory.IsTypeSupported(conditionType) Then
    'Create a Condition with the supported Type
    Dim condition As IAgCrdnCondition = provider.Conditions.Factory.Create("MyCondition", String.Empty, conditionType)
End If

See Also

© 2019 Analytical Graphics, Inc. All Rights Reserved.