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

Filter on specific folder name

$
0
0

Hi all,

 

I need some help please. I'm trying to get a folder list with a filter using this code but I don't think I can access the name property. Please can someone explain to me how to do this in C#

 

NameValueCollection folderFilter = new NameValueCollection();

folderFilter.Add("Name", "John");

List<EntityViewBase> folderList = vc.FindEntityViews(typeof(Folder), null, folderFilter, null);

 

Thanks


Viewing all articles
Browse latest Browse all 1860

Trending Articles



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