IVsHierarchy::GetSite Method (IServiceProvider^)
Visual Studio 2015
Gets the service provider from which to access the services.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- ppSP
-
Type:
Microsoft.VisualStudio.OLE.Interop::IServiceProvider^
[out] Pointer to the IServiceProvider interface of the service provider.
Return Value
Type: System::Int32If 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 );
Show: