AGI STK VGT 11 Send comments on this topic.
IsTypeSupported Method (IAgCrdnConditionFactory)
See Also  Example
EType





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
Member Value Description
eCrdnConditionTypeUnknown -1 Unknown or unsupported condition type
eCrdnConditionTypeScalarBounds 0 Condition placing bounds 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

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1