Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

VixCOM, Constant Value to Constant Name

$
0
0

Hi!

 

Is there any possibility in VB/C# to get the name of a constant by the value?

 

For example I get the value 8 by using the GetProperties regarding the power state.

And now I want to write the meaning of that value into a log file . The meaning is the constant name: VIX_POWERSTATE_POWERED_ON

 

But how can I get that name by using a value? I could write an own function for solving that problem.. but only if there's no other way.

 

Any ideas?

 

Thanks!


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>