get_attribute_value
Description:
[ Version ( since = "2.34" ) ]
public Variant? get_attribute_value (string attribute, VariantType? expected_type)
public Variant? get_attribute_value (string attribute, VariantType? expected_type)
Queries the named attribute on this.
If expected_type is specified and the attribute does not have this type, null is returned.
null is also returned if the attribute simply does not exist.
Parameters:
| this |
a MenuItem |
| attribute |
the attribute name to query |
| expected_type |
the expected type of the attribute |
Returns:
|
the attribute value, or null |