IPropertyManager.GetPropertyDefinitions not working in Vault 2017
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
since upgrading to Vault R2017 the function GetPropertyDefinitions in Vault.Services.Connection.IPropertyManager is not working anymore.
I am using it in a Vault Extension. Calling the function results in a System.NullReferenceException exception.
This is the code i use:
Vault.Services.Connection.IPropertyManager pm = m_conn.PropertyManager;
Vault.Currency.Properties.PropertyDefinitionDictionary pdefs;
pdefs = pm.GetPropertyDefinitions
(
Vault.Currency.Entities.EntityClassIds.Files,
null,
Vault.Currency.Properties.PropertyDefinitionFilter.IncludeAll
);
In the stack trace i can see that the error occurs here:
Autodesk.DataManagement.Client.Framework.Vault.Services.Connection.Implementation.PropertyManager.<>c__DisplayClass8_0.<GetPropertyDefinitions>b__0(PropertyDefinitionToEntityClassAssociation f)
The same code is working in a stand alone application but running in a Vault Extension it throws the above error.
Can anybody help me?
Karl