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

VIX 1.5, GetProperties with VB

$
0
0

Hi!

 

Im using the VIX API 1.5 and Im trying to get some properties like vmPowerState by the function GetProperties.

 

I tried it with that code:

.....

Dim properties As Object

Err = CType(vm, VixCOM.IVixHandle).GetProperties(propertyIDS, properties)

.....

 

After failing with that call, cause of the null reference exception, I thought I have to insert something like "ByRef" in the call. But thats not really possible..

 

The VIX Reference Guide says: "This function does not apply in VBScript, since it is not possible to access the IVixHandle interface of an object."

 

So, there's no possibility to get properties like the current state when using Visual Basic?

 

Thanks and Regards!


Viewing all articles
Browse latest Browse all 34639

Trending Articles



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