| Exception | Description |
|---|---|
| NotIndexedPropertyException | Thrown when property is not indexed. |
When there are unused indexes between the used ones, this property will return the last one before the first empty property index.
For example:
1st, 2nd and 10th indexes are used so LastUsedIndex will return 2nd index as last used.
Function function = page.Functions[0]; // A valid Function object PropertyValue propertyValue = function.Properties.FUNC_CONNECTIONDESIGNATION; if (propertyValue.Definition.IsIndexed) { for (int i = propertyValue.LastUsedIndex ; i >= 1 ; --i) { PropertyValue propertyElement = propertyValue[i]; string sProperty = propertyElement.ToString(); } }