Message 1 of 5
Vault 2015 C# Get Selected File Properties and Values

Not applicable
07-22-2015
05:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is bit vague or may be i am not understanding,
I trying to get the seleted file's properties and it values.
Now I am able to get it, but the properties are not matching against the values.
I am gettign the properties values and propdefids. But I am not able to get the correct property using the propdefids.
How do I get properties and its values of a selected files in a dictionary format so i have matching property names in keys and the property values in dictionary values.
var propDefs = connection.PropertyManager.GetPropertyDefinitions(VDF.Vault.Currency.Entities.EntityClassIds.Files, null, VDF.Vault.Currency.Properties.PropertyDefinitionFilter.IncludeAll); var propSvc = connection.WebServiceManager.PropertyService; var properties = propSvc.GetPropertiesByEntityIds("FILE", new long[] { selectedFile.Id }); foreach (var item in properties) { string val = item.Val.ToString(); }