System.Object
Eplan.EplApi.Base.SysMessagesEnumerator
System.Object
Eplan.EplApi.Base.SysMessagesEnumerator
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());
Name | Description | |
---|---|---|
SysMessagesEnumerator Constructor | Overloaded. |
Name | Description | |
---|---|---|
Current | gets the current element in SysMessagesCollection |
Name | Description | |
---|---|---|
Dispose | ||
GetCount | ||
MoveNext | Advances the enumerator to the next element of SysMessagesCollection | |
Reset | Sets the enumerator to its initial position, which is before the first element in SysMessagesCollection |