LanguageService.Site Property
Returns the service provider given to this language service.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public ReadOnly Property Site As IServiceProvider
public IServiceProvider Site { get; }
public:
property IServiceProvider^ Site {
IServiceProvider^ get ();
}
member Site : IServiceProvider with get
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.