AnsweredAssumed Answered

GetCustomProperty Document Manager API

Question asked by Carmen Lopera on Sep 13, 2018
Latest reply on Sep 13, 2018 by Carmen Lopera

I am calling GetCustomProperty with a property name that the part doesn't have and instead of returning null is crashing. The documentation doesn't say anything about the return value if the property doesn't exist. Do we need to call this method when we know the property exists?

 

string sCustPropStr = null;

SwDmCustomInfoType nPropType = 0;

sCustPropStr = swDoc.GetCustomProperty("MyProperty", out nPropType);

Outcomes