Hi All
I'm working with the IDmsElement property State, which returns an enum with several options, including "Undefined." I'm not entirely sure what "Undefined" represents or under what conditions an element would enter this state.
Could someone clarify:
- What does the "Undefined" state indicate?
- When/why would an element's state become "Undefined"?

Thanks!
Hi Jason,
In Skyline.DataMiner.Core.DataMinerSystem.Common, the ElementState enum is a direct 1:1 mirror of SLNet's Net.Messages.ElementState.
If the underlying DataMiner system hands back Undefined (e.g. the element's state could not be determined or it's in a transitional/unknown condition), your IDmsElement.State will surface it as Undefined.
In practice, you'll see it as a default before the real state is loaded, or as a fallback when the source value doesn't map to a known state.
For normal logic, the actionable states are Active, Paused, Stopped, Error, Restart, Masked, Hidden, and Deleted.
Hope this helps.
Thanks, Vasco! This answers my question.
Hi Jason,
That’s a good question. I’d say it’s probably used when none of the other states can be clearly determined, instead of throwing an exception. But let’s see if someone can clarify it better.