Eplan Platform API
Eplan.EplApi.EServices Namespace / PrjMessagesEnumerator Class
Members Example

In This Topic
    PrjMessagesEnumerator Class
    In This Topic
    supports a simple iteration over Eplan::EplApi::EServices:
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.EServices.PrjMessagesEnumerator

    Syntax
    public class PrjMessagesEnumerator 
    public ref class PrjMessagesEnumerator 
    Example
    getting all project messages after an offline run
    Check oCheck = new Check();
    oCheck.VerifyProject(oProject);
    
    PrjMessagesCollection colPrjMsg = new PrjMessagesCollection(oProject);
    PrjMessagesEnumerator itPrjMsg = colPrjMsg.GetPrjMsgEnumerator();
    
    itPrjMsg.MoveNext();
    int nNr=0;
    
    do 
    {
    	ProjectMessage oPrjMsg = itPrjMsg.Current as ProjectMessage;
    	if (oPrjMsg != null)
    	{
    		nNr++;
    	}					
    
    } while(itPrjMsg.MoveNext());
    Public Constructors
     NameDescription
    Public ConstructorDefault constructor  
    Top
    Public Properties
     NameDescription
    Public Propertygets the current element in Eplan::EplApi::EServices:  
    Public Propertygets the current element in Eplan::EplApi::EServices:  
    Top
    Public Methods
     NameDescription
    Public Method  
    Public MethodAdvances the enumerator to the next element of Eplan::EplApi::EServices:  
    Public MethodSets the enumerator to its initial position, which is before the first element in Eplan::EplApi::EServices:  
    Public Methodinitializes the enumerator for iterating over the project messages collection  
    Top
    See Also