API Help
Eplan.EplApi.MasterData Namespace / MDPropertyValue Class / ToString Method / ToString(Language,String) Method
Language to extract from MultiLangString value.
Default value which is retuned when property cannot be read.

In This Topic
    ToString(Language,String) Method
    In This Topic
    Returns string value of this property. When type of property is MultiLangString then only specified language is returned. In case of off-line MDPropertyValue object, stored value is returned without any cast. When property can not be read, default_value is returned instead of throwing MDEmptyPropertyException .
    Syntax

    Parameters

    language
    Language to extract from MultiLangString value.
    default_value
    Default value which is retuned when property cannot be read.

    Return Value

    Value of string or default_value when property can not be read from object or properties list.
    See Also