IVsHierarchy.GetSite Method (IServiceProvider)

 

Gets the service provider from which to access the services.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetSite(
	out IServiceProvider ppSP
)

Parameters

ppSP
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProvider

[out] Pointer to the IServiceProvider interface of the service provider.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

This method is not typically called directly, because sites are generally set.

From vsshell.idl:

HRESULT IVsHierarchy::GetSite(
   [out] IServiceProvider **ppSP
);
Return to top
Show: