LanguagePreferences.Site Property

Gets or sets the service provider.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Protected Property Site As IServiceProvider
'使用
Dim value As IServiceProvider

value = Me.Site

Me.Site = value
protected IServiceProvider Site { get; set; }
protected:
property IServiceProvider^ Site {
    IServiceProvider^ get ();
    void set (IServiceProvider^ value);
}
protected function get Site () : IServiceProvider
protected function set Site (value : IServiceProvider)

Property Value

Type: System.IServiceProvider

An IServiceProvider object or a 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.

Permissions

See Also

Reference

LanguagePreferences Class

LanguagePreferences Members

Microsoft.VisualStudio.Package Namespace