Share via


HierarchyProvider.IServiceProvider.GetService(Type) Method

Definition

Calls the GetService(Type) method.

 virtual System::Object ^ System.IServiceProvider.GetService(Type ^ serviceType) = IServiceProvider::GetService;
object IServiceProvider.GetService (Type serviceType);
Function GetService (serviceType As Type) As Object Implements IServiceProvider.GetService

Parameters

serviceType
Type

The Type object of the requested IServiceProvider interface.

Returns

The requested service object, or null if the service does not exist.

Implements

Remarks

For more information, see the GetService method.

Applies to