Retrieves an int value of an
attribute.
Syntax
long IgetIntAttribute(string attributeName);
Parameters
- attributeName
- The name of the attribute whose integer value is retrieved.
Return Values
A long value that holds the integer 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 integer type.
- IAttributeBlankException
- Thrown when the attribute has a blank value.
Example
// Call the int method and get the attribute
int intValue = 1;
String intAttributeName = "priority";
intValue = exampleBusObj.IgetIntAttribute(intAttributeName);
