PackageUtilities::QueryService<TService> Method (IServiceProvider^)
Visual Studio 2015
Gets a service exposed by a service provider based on its service type.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: generic<typename TService> [ExtensionAttribute] static Object^ QueryService( IServiceProvider^ serviceProvider )
Parameters
- serviceProvider
-
Type:
Microsoft.VisualStudio.OLE.Interop::IServiceProvider^
The service provider to query.
Type Parameters
- TService
The type whose GuidAttribute specifies the service GUID to query for.
Show: