boolean IisKey(string attributeName);
The method returns true if the attribute is a key, else it returns false.
// See if attribute is key boolean isKey = false; String busAttribute = "AttributeName"; isKey = exampleBusObj.IisKey(busAttribute); if (isKey) ...