Package.IVsPackage.SetSite(IServiceProvider) Package.IVsPackage.SetSite(IServiceProvider) Package.IVsPackage.SetSite(IServiceProvider) Package.IVsPackage.SetSite(IServiceProvider) Package.IVsPackage.SetSite(IServiceProvider) Method

Definition

Initializes the VSPackage in the Visual Studio environment.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ sp) = Microsoft::VisualStudio::Shell::Interop::IVsPackage::SetSite;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ sp) = Microsoft::VisualStudio::Shell::Interop::IVsPackage::SetSite;
int Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & sp);
int IVsPackage.SetSite (Microsoft.VisualStudio.OLE.Interop.IServiceProvider sp);
Function SetSite (sp As IServiceProvider) As Integer Implements IVsPackage.SetSite
Parameters
Returns

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

Implements

Applies to