Partager via


FlavoredProject.IVsHierarchy.SetSite(IServiceProvider) Method

Definition

Sets the service provider from which to access the services.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider) = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::SetSite;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider) = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::SetSite;
int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & serviceProvider);
int IVsHierarchy.SetSite (Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
Function SetSite (serviceProvider As IServiceProvider) As Integer Implements IVsHierarchy.SetSite

Parameters

Returns

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

Implements

Remarks

This method calls the SetSite method on the inner project.

Applies to