Compartir a través de


LanguagePreferences.Site Property

Gets or sets the service provider.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Protected Property Site As IServiceProvider
protected IServiceProvider Site { get; set; }
protected:
property IServiceProvider^ Site {
    IServiceProvider^ get ();
    void set (IServiceProvider^ value);
}
member Site : IServiceProvider with get, set
function get Site () : IServiceProvider 
function set Site (value : IServiceProvider)

Property Value

Type: IServiceProvider
An IServiceProvider object or nulla null reference (Nothing in Visual Basic) if the service provider was not set.

Remarks

The value returned is the same value passed to the LanguagePreferences constructor. This property is typically not set outside the LanguagePreferences class itself.

.NET Framework Security

See Also

Reference

LanguagePreferences Class

Microsoft.VisualStudio.Package Namespace