SolutionServices.GetService<TWorkspaceService> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient un service spécifique à l’espace de travail fourni par l’hôte identifié par le type de service. Si l’hôte ne fournit pas le service, cette méthode retourne null.
public TWorkspaceService? GetService<TWorkspaceService>() where TWorkspaceService : Microsoft.CodeAnalysis.Host.IWorkspaceService;
member this.GetService : unit -> 'WorkspaceService (requires 'WorkspaceService :> Microsoft.CodeAnalysis.Host.IWorkspaceService)
Public Function GetService(Of TWorkspaceService As IWorkspaceService) () As TWorkspaceService
Paramètres de type
- TWorkspaceService