VMware {code} Community

Parameters in ValidateMigration method

Good morning,

according with SDK reference guide

VirtualMachinePowerState: The power state that the virtual machines must have. If this argument is not set, each virtual machine is evaluated according to its current power state.

May I see an example of ValidateMigration method with VirtualMachinePowerState argument not set in c#?

Thank's for all.


Tags (2)
0 Kudos
1 Reply

In Java you can just pass in null where VirtualMachinePowerState is expected. I think you can do the same in C#.

Since you are using C#, you should take a look at the developer's guide for windows toolkit. I think you can leverage .Net API discussed there.


Steve JIN, VMware Engineering

Creator of VMware Infrastructure Java API. VI Java API 2.0 --- 15 times faster than AXIS in loading, 4+ faster in deserialization; only 1/4 of the size required by AXIS. More importantly, the freedom to redistribute your applications. (Download, Samples, DocWiki, RSS Feed)

Get Connected with Other Developers in the Community?

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org
0 Kudos