IgetDateAttribute()

Retrieves the value of the date attribute.

Syntax

string IgetDateAttribute(string attributeName);

Parameters

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

Return Values

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

IAttributeBlankException
Thrown when the attribute has a blank value.

Example

//call the Date method and get the attribute
String dateAttributeName = "DateOfBirth";
String aDate;
aDate = exampleBusObj.IgetDateAttribute(dateAttributeName);

Copyright IBM Corp. 2004