IVsUIHierarchy::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(
	[OutAttribute] 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.

From vsshell.idl:

HRESULT IVsUIHierarchy::GetSite(
   [out] IServiceProvider **ppSP
);

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

Return to top
Show: