In a dll in C# I get the tcm of a component. This component is placed in the metadata of a strucure group.

What I need is to get the url of the page that is using this component.
Ultimately what I need to do in C# is the same that Tridion does when you write `tridion:href@@component@@`

Thanks!!