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

In This Topic
    PrjMessagesRegisteredEnumerator Class
    In This Topic
    iterates over all registered electrotechnical messages of the system Eplan::EplApi::EServices:
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.EServices.PrjMessagesRegisteredEnumerator

    Syntax
    public class PrjMessagesRegisteredEnumerator 
    public ref class PrjMessagesRegisteredEnumerator 
    Remarks
    only electrotechnical messages that are licensed in the actual system will be returned
    Example
    getting all registered electrotechnical messages in the system
    PrjMessagesRegisteredCollection colPrjRegMsg = new PrjMessagesRegisteredCollection();
    PrjMessagesRegisteredEnumerator itPrjRegMsg = colPrjRegMsg.GetRegisteredPrjMsgsEnumerator();
    
    itPrjRegMsg.MoveNext();
    int nNr=0;
    
    do 
    {
    	ElectroMessage oEMsg = itPrjRegMsg.Current as ElectroMessage;
    	if (oEMsg != null)
    	{
    		nNr++;
    	}					
    
    } while(itPrjRegMsg.MoveNext());
    Public Constructors
     NameDescription
    Public ConstructorDefault constructor  
    Top
    Public Properties
     NameDescription
    Public Propertygets the current element in Eplan::EplApi::EServices:  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. initializes the enumerator for iterating over the collection of all registered electrotechnical messages in the system;  
    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:  
    Top
    See Also