Click or drag to resize

RapidDataDataType Property

Gets the RapidDataType of the Rapid data instance.

Namespace:  ABB.Robotics.Controllers.RapidDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public RapidDataType DataType { get; }

Property Value

Type: RapidDataType
Remarks
NOTE:When the RapidDataType instance is no longer needed you must call its Dispose method.
Examples
This example shows how the property can be used.
public bool IsPersistent(RapidData rd)
{
    bool result = false;

    RapidDataType type = null;

    try
    {
        type = rd.DataType;

        if (type != null)
        {
            result = (type.Type & SymbolTypes.Persistent) == SymbolTypes.Persistent;
        }
    }
    catch (System.Exception se)
    {
        // Handle the exception
    }
    finally
    {
        if (type != null)
        {
            type.Dispose();
            type = null;
        }
    }

    return result;
}
See Also