Query material properties

I'm new to programming with VBA in Solidworks API. I have an assembly and I query all components of it. For the individual components I want to query the material via .GetMaterialPropertyName2 and the material properties (modulus of elasticity, tensile strength...). But with the function .GetPropertyByName I can't get any further. Can anyone help me?

SolidworksApi/macros