Partilhar via


HostLanguageServices.GetService<TLanguageService> Método

Definição

Obtém um serviço específico de idioma fornecido pelo host identificado pelo tipo de serviço. Se o host não fornecer o serviço, esse método retornará nulo.

public:
generic <typename TLanguageService>
 where TLanguageService : Microsoft::CodeAnalysis::Host::ILanguageService abstract TLanguageService GetService();
public abstract TLanguageService GetService<TLanguageService> () where TLanguageService : Microsoft.CodeAnalysis.Host.ILanguageService;
public abstract TLanguageService? GetService<TLanguageService> () where TLanguageService : Microsoft.CodeAnalysis.Host.ILanguageService;
abstract member GetService : unit -> 'LanguageService (requires 'LanguageService :> Microsoft.CodeAnalysis.Host.ILanguageService)
Public MustOverride Function GetService(Of TLanguageService As ILanguageService) () As TLanguageService

Parâmetros de tipo

TLanguageService

Retornos

TLanguageService

Aplica-se a