Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the service provider given to this language service.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public ReadOnly Property Site As IServiceProvider
'Usage
Dim instance As LanguageService
Dim value As IServiceProvider
value = instance.Site
public IServiceProvider Site { get; }
public:
property IServiceProvider^ Site {
IServiceProvider^ get ();
}
public function get Site () : IServiceProvider
Property Value
Type: System.IServiceProvider
Returns an IServiceProvider object or a null value if LanguageService.SetSite was not called with a valid service provider.
Remarks
The service provider is initialized by a call to LanguageService.SetSite after the language service has been instantiated by the package.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.