Eplan Platform API
Eplan.EplApi.Base Namespace / SysMessagesEnumerator Class
Members Example

In This Topic
    SysMessagesEnumerator Class
    In This Topic
    supports a simple iteration over SysMessagesCollection
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.Base.SysMessagesEnumerator

    Syntax
    public class SysMessagesEnumerator 
    public ref class SysMessagesEnumerator 
    Example
    iterate over the complete system message tree get all errors and fatal errors of the system message tree since nBookmark was set; how to get a bookmark see BaseException.GetBookmarkID
    SysMessagesCollection colSysMsg = new SysMessagesCollection();
    SysMessagesEnumerator itSysMsg = colSysMsg.GetSysMsgEnumerator();
    int nNr=0;
    
    itSysMsg.MoveNext(); // move to first item in collection
    
    do 
    {
    BaseException osysMsg = itSysMsg.Current as BaseException;
    if (osysMsg != null)
    {
    	nNr++;
    }					
    
    } while(itSysMsg.MoveNext());
    SysMessagesCollection colSysMsg = new SysMessagesCollection(nBookmark, Eplan.EplApi.Base.MessageLevel.Error);
    SysMessagesEnumerator itSysMsg = colSysMsg.GetSysMsgEnumerator();
    int nNr=0;
    
    itSysMsg.MoveNext(); // move to first item in collection
    
    do 
    {
    BaseException osysMsg = itSysMsg.Current as BaseException;
    if (osysMsg != null)
    {
    	nNr++;
    }					
    
    } while(itSysMsg.MoveNext());
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Propertygets the current element in SysMessagesCollection  
    Top
    Public Methods
     NameDescription
    Public Method  
    Public Method  
    Public MethodAdvances the enumerator to the next element of SysMessagesCollection  
    Public MethodSets the enumerator to its initial position, which is before the first element in SysMessagesCollection  
    Top
    See Also