How to get the material name using Document Manager api?

Hello,

I have the following situation. Given a SwDMDocument and a configuration name I want to get the material used. I just cannot find the right method.

Using the default api I achieved this by using:

partDoc.GetMaterialPropertyName2(configurationName, out matDBName);

SolidworksApi macros