IVsHierarchy.GetSite Method

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.

COM Signature

From vsshell.idl:

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft