Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

Help getting Metadata keys / values

$
0
0

Hi All

 

Struggling a bit trying to work out how to view a vApps metadata entries.  At the moment just trying to get a list of key/values.  I've gotten as far as:


Vapp vapp = Vapp.GetVappByReference(client, vAppRef);


Metadata md = vapp.GetMetadata();


Dictionary<string, string> mdDict = md.GetMetadataEntries();

 

But apparently my dictionary is empty

 

I can obtain a list of the metadata keys by doing:

List<MetadataEntryType> mdList = md.GetTypedMetadataEntries();
foreach (MetadataEntryType mdEntry in mdList)
{    Response.Write(mdEntry.Key);
}

But thats all I can get.  No values - what am I doing wrong?

 

Thanks!

 

Mark


Viewing all articles
Browse latest Browse all 2039

Trending Articles



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