Package.IServiceProvider.GetService Method (Type)

 

Gets the service of the specified type.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

object IServiceProvider.GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The type of the service to get.

Return Value

Type: System.Object

An object representing the requested service, or null if none can be found.

Return to top
Show: