LanguageService.SetSite Method (Object)
Called to set or site the service provider for this language service.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
You can call this method after you instantiate the language service in your implementation of the LanguageService.Initialize method. Typically, the VSPackage is passed as the service provider. When LanguageService.GetService is called, it typically passes the request on the service provider given by . The object passed in must be derived from VSPackage and implement either the IServiceProvider or IOleServiceProvider interface.
The base method stores the service provider in an internal variable and calls GetProviderLocale on the service provider object (which is why the object must be derived from Microsoft.VisualStudio.Shell.Package).