API Help
Eplan.EplApi.DataModel Namespace / IndexedPropertyException Class
Members Example

In This Topic
    IndexedPropertyException Class
    In This Topic
    Throws when user tries to get value from indexed property without applying index. User could ask about index using : bool PropertyValue::IsIndexed. We can also ask about used index using : int [ ] PropertyValue::Indexes , or just use PropertyValue::HighestIndex which is number of highest used index. Indexes starts from 1 !. PropertyValue::MaxIndex says about how many indexes could be there, not how many indexes are there;
    Inheritance Hierarchy

    System.Object
       System.Exception
          System.ApplicationException
             Eplan.EplApi.Base.BaseException
                Eplan.EplApi.DataModel.DataModelException
                   Eplan.EplApi.DataModel.IndexedPropertyException

    Syntax
    public class IndexedPropertyException : DataModelException 
    public ref class IndexedPropertyException : public DataModelException 
    Example
    ProperyList x = ... ;
    string value = x[ INDEXED_PROPERTY ] ; // throws IndexedPropertyException
    PropertyList x = ... ;
    string value = x[ INDEXED_PROPERTY , 1 ]; // if such property hasn' t such index (1) exception PropertyNotFoundException will be thrown.
    PropertyValue x = ...;
    string value = x; // throws IndexedPropertyException
    PropertyValue x = ... ;
    string value = x[ 1 ];  // if such property hasn' t such index (1) exception PropertyNotFoundException will be thrown.
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public PropertyReturns the level of message as Eplan.EplApi.Base.MessageLevel. (Inherited from Eplan.EplApi.Base.BaseException)
    Public PropertyReturns number of repetitions of consecutive messages with the same text (i.e. error description) which are joined into one item in the system's message tree. (Inherited from Eplan.EplApi.Base.BaseException)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Top
    Public Methods
     NameDescription
    Public MethodDestructor for deterministic finalization of BaseException object. (Inherited from Eplan.EplApi.Base.BaseException)
    Public MethodMethod enters a message in the system-wide message tree. (Inherited from Eplan.EplApi.Base.BaseException)
    Public Method (Inherited from System.Exception)
    Public MethodSets a label in the system error message management for getting a section of the 'message tree' (Inherited from Eplan.EplApi.Base.BaseException)
    Public Methodreturns the identifying S- number of a system message (Inherited from Eplan.EplApi.Base.BaseException)
    Public MethodReturns the text of the system message without the index (Inherited from Eplan.EplApi.Base.BaseException)
    Public Method (Inherited from System.Exception)
    Public Method (Inherited from System.Exception)
    Public Method (Inherited from System.Exception)
    Top
    See Also