Item Property (MDPropertyValue)
Returns
MDPropertyValue object at specified index.
MDPropertyValue oProperty = m_MDPartsDatabase.Parts[0].Properties[Eplan.EplApi.MasterData.Properties.MDPartsDatabaseItem.ARTICLE_HEIGHT];
if (oProperty.Definition.IsIndexed && oProperty.Definition.MaxIndex > 2)
{
MDPropertyValue oPv = oProperty[1]; // now oPv points to first index of property FUNC_INDEXED_PROPERTY
string str = oPv.ToString();
if (oProperty.Definition.MaxIndex < 100)
{
string str1 = oProperty[100]; // throws MDInvalidIndexException exception
string str2 = oProperty[0]; // also throws MDInvalidIndexException exception
}
string str3 = oProperty; // throws MDInvalidIndexException exception, because valid index was not specified
}