IsetStringAttribute()

Sets an attribute to a string value.

Syntax

void IsetStringAttribute(string attributeName, string value);

Parameters

attributeName
The name of the attribute whose value is set.

value
The string value for the attribute.

Return Values

None.

Exceptions

IInvalidAttributeTypeException
Thrown when the attribute is not string type.

IInvalidAttributeNameException
Thrown when the attribute name is invalid.

Example

// Call the String method
String stringAttribute = "CustomerName";
String value = "Greatest Customer";
exampleBusObj.IsetStringAttribute(stringAttribute, value);

Copyright IBM Corp. 2004