Compartilhar via


LanguageService.Site Property

Definition

Returns the service provider given to this language service.

public:
 property IServiceProvider ^ Site { IServiceProvider ^ get(); };
public IServiceProvider Site { get; }
member this.Site : IServiceProvider
Public ReadOnly Property Site As IServiceProvider

Property Value

Returns an IServiceProvider object or a null value if SetSite(Object) was not called with a valid service provider.

Remarks

The service provider is initialized by a call to Microsoft.VisualStudio.Package.LanguageService.SetSite after the language service has been instantiated by the package.

Applies to