LastUsedIndex Property (MDPropertyValue)
Returns number of highest used index. Index value starts from 1. If it is not indexed-property or there index is not used, LastUsedIndex is 0; Object of MDPropertyValue have to point to on-line property.
public int LastUsedIndex {get;}
public:
property int LastUsedIndex {
int get();
}
MDPropertyValue oProperty = m_oTestPart.Properties[ Eplan.EplApi.MasterData.Properties.MDPartsDatabaseItem.ARTICLE_FREE_DATA_VALUE ];
if(oProperty.Definition.IsIndexed)
{
{
MDPropertyValue oPropertyElement = oProperty[ i ];
string sProperty = oPropertyElement.ToString();
}
}