tryGetPropertyValue

tryGetPropertyValue(name:         String;
                    instantiated: Boolean output): Any;

The tryGetPropertyValue method of the Object class returns the value of the property specified in the name parameter if the property is a static property. For a static property, the value of the instantiated property is always true.

If the property is a dynamic property that has been assigned a value, that value is returned and the instantiated parameter is set to true. If it has not been assigned a value or the value has been deleted, the null value for the property type is returned and the instantiated parameter is set to false.

If the name parameter does not correspond to a static or a dynamic property, false is returned in the instantiated parameter.

The return result can be assigned to a variable of type Any or it can be converted to a specific primitive type or class if the type is known.