Partager via


FlavoredProject.IVsHierarchy.GetSite(IServiceProvider) Method

Definition

Gets the service provider from which to access the services.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetSite([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ % serviceProvider) = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::GetSite;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetSite([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ &  serviceProvider) = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::GetSite;
int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetSite([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & & serviceProvider);
int IVsHierarchy.GetSite (out Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetSite : IServiceProvider -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetSite : IServiceProvider -> int
Function GetSite (ByRef serviceProvider As IServiceProvider) As Integer Implements IVsHierarchy.GetSite

Parameters

Returns

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

Implements

Remarks

This method calls the GetSite method, which calls the <xref:Microsoft.VisualStudio.Shell.Flavor.FlavoredProject.Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.GetSite%2A> method on the inner project.

Applies to