IgetStringAttribute()

Retrieves a string value of an attribute.

Syntax

string IgetStringAttribute(string attributeName);

Parameters

attributeName
The name of the attribute whose string value is retrieved.

Return Values

A string that contains the 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 string type.

IAttributeBlankException
Thrown when the attribute has a blank value.

Example

// Call the String method and get the attribute
String stringValue = "declined"; 
String stringAttributeName = "SalesOrder";
stringValue = exampleBusObj.IgetStringAttribute(stringAttributeName);

Copyright IBM Corp. 1997, 2004