Eplan Platform API
Eplan.EplApi.DataModel Namespace / PropertyValue Class / ToString Method / ToString(Language) Method
Language to extract from MultiLangString value.

In This Topic
    ToString(Language) Method
    In This Topic

    Used in conversion of the PropertyValue object to MultiLangString.

    If the type of property is MultiLangString, only the specified language is returned. In case of a transient PropertyValue object, the stored value is returned without any cast.

    Syntax
    public string ToString( 
       ISOCode.Language language
    )
    public:
    String^ ToString( 
       ISOCode.Language language
    ) 

    Parameters

    Parameter NameDescription
    languageLanguage to extract from MultiLangString value.

    Return Value

    Returns the string value of the PropertyValue object or NULL if the property cannot be read.
    Exceptions
    ExceptionDescription
    Thrown if the source is indexed, but the destination is an unindexed property.
    Thrown if the source is not an indexed property, but the destination is indexed.
    Remarks
    If the property cannot be read, NULL is returned instead of throwing an EmptyPropertyException.
    See Also