Get Parent Component

hi all,
i am trying this way but it says that swParentComp.Name2doesn´t exist. any ideas?
thank you!

code:
Dim swParentComp As SldWorks.Component2
Set swParentComp = swchildcomp.GetParent
swParentComp.Name2SolidworksApi macros