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

Definition

Initializes the VSPackage in the Visual Studio environment.

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.

Applies to