SolutionServices.GetRequiredService<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 lève InvalidOperationException.
public TWorkspaceService GetRequiredService<TWorkspaceService>() where TWorkspaceService : Microsoft.CodeAnalysis.Host.IWorkspaceService;
member this.GetRequiredService : unit -> 'WorkspaceService (requires 'WorkspaceService :> Microsoft.CodeAnalysis.Host.IWorkspaceService)
Public Function GetRequiredService(Of TWorkspaceService As IWorkspaceService) () As TWorkspaceService
Paramètres de type
- TWorkspaceService