IgetDefaultValue()

Retrieves the default value of the attribute.

Syntax

string IgetDefaultValue(string attributeName);

Parameters

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

Return Values

A string that contains the default value of the attribute.

Exceptions

IInvalidAttributeNameException
Thrown when the attribute name is invalid.

IValueNotSetException
Thrown when the attribute has no default value.

Example

// Call the default value method
String attributeName = "Name";
String defaultAttributeValue;
defaultAttributeValue = 
     exampleBusObj.IgetDefaultValue (attributeName);

Copyright IBM Corp. 2004