SolutionServices.GetService<TWorkspaceService> Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a workspace specific service provided by the host identified by the service type. If the host does not provide the service, this method returns null.
C#
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
- TWorkspaceService
TWorkspaceService
Ürün | Sürümler |
---|---|
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 |
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.
.NET geri bildirimi
.NET, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: