IisKey()

Determines whether the attribute is a key.

Syntax

boolean IisKey(string attributeName);

Parameters

attributeName
The name of the attribute that is checked for a key.

Return Values

The method returns true if the attribute is a key, else it returns false.

Exceptions

IInvalidAttributeNameException
Thrown when the attribute name is invalid.

Example

// See if attribute is key
boolean isKey = false;
String busAttribute = "AttributeName";
isKey = exampleBusObj.IisKey(busAttribute);
if (isKey)
     ...

Copyright IBM Corp. 2004