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

Parameters

EType
MemberValueDescription
eCrdnParameterSetTypeUnknown-1Unknown or unsupported parameter set
eCrdnParameterSetTypeAttitude0A parameter set type is defined by identifying one set of axes in reference to another.
eCrdnParameterSetTypeGroundTrajectory1A parameter set type is defined by identifying location in reference central body.
eCrdnParameterSetTypeTrajectory2A parameter set type is defined by identifying location in reference coordinate system.
eCrdnParameterSetTypeOrbit3A parameter set type is defined by identifying orbiting point and its central body.
eCrdnParameterSetTypeVector4A parameter set type is defined by identifying vector in reference axes.

Example

Determine if the specified parameter set type is supported.
[C#]Copy Code
// Check if the specified parameter set type is supported. 
if (provider.ParameterSets.Factory.IsTypeSupported(parameterSetType)) 

    //Create a ParameterSet with the supported Type 
    IAgCrdnParameterSet parameterSet = provider.ParameterSets.Factory.Create( 
        "MyParameterSet"string.Empty, 
        parameterSetType); 

 

Determine if the specified parameter set type is supported.
[Visual Basic .NET]Copy Code
' Check if the specified parameter set type is supported.
If provider.ParameterSets.Factory.IsTypeSupported(parameterSetType) Then
    'Create a ParameterSet with the supported Type
    Dim parameterSet As IAgCrdnParameterSet = provider.ParameterSets.Factory.Create("MyParameterSet", String.Empty, parameterSetType)
End If

See Also

© 2019 Analytical Graphics, Inc. All Rights Reserved.