다음을 통해 공유


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 (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

‘선언
Public ReadOnly Property Site As IServiceProvider
    Get
‘사용 방법
Dim instance As LanguageService
Dim value As IServiceProvider

value = instance.Site
public IServiceProvider Site { get; }
public:
property IServiceProvider^ Site {
    IServiceProvider^ get ();
}
member Site : IServiceProvider
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

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace