Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

how to get a list of Distributed vSwitch in c#

$
0
0

Hi,

    basically I use the code below (and it works) to get the list of vswitch and would like something like that for dVS....

 

var vswitches = ((VMware.Vim.HostSystem)(client.FindEntityViews(typeof(HostSystem), null, null, null)[0])).Config.Network.Vswitch;

 

            foreach (var vswitch in vswitches)

 

Thanks for your help.


Viewing all articles
Browse latest Browse all 1860

Trending Articles



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