Прочетете на английски

Споделяне чрез


LanguageServices Class

Definition

Per language services provided by the host environment.

C#
public sealed class LanguageServices
Inheritance
LanguageServices

Properties

Language

The name of the language

SolutionServices

Methods

GetRequiredService<TLanguageService>()

Gets a language specific service provided by the host identified by the service type. If the host does not provide the service, this method returns throws InvalidOperationException.

GetService<TLanguageService>()

Gets a language specific service provided by the host identified by the service type. If the host does not provide the service, this method returns null.

Applies to

Продукт Версии
Roslyn 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0