Retrieves a double value of an
attribute.
Syntax
double IgetDoubleAttribute(string attributeName);
Parameters
- attributeName
- The name of the attribute whose double value is
retrieved.
Return Values
The double value of the attribute.
Exceptions
- IAttributeNotSetException
- Thrown when the attribute value is not set.
- IInvalidAttributeNameException
- Thrown when the attribute name is invalid.
- IInvalidAttributeTypeException
- Thrown when the attribute is not of the double type.
- IAttributeBlankException
- Thrown when the attribute has a blank value.
Example
// Call the double method and get the attribute
double doubleValue = 0;
String doubleAttributeName = "Average";
doubleValue = exampleBusObj.IgetDoubleAttribute(doubleAttributeName);
