mscorlib(4.0.0.0) API with additions
System.IServiceProvider Interface Reference

Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects. More...

Inheritance diagram for System.IServiceProvider:
[legend]

Public Member Functions

object GetService (Type serviceType)
 Gets the service object of the specified type. More...
 

Detailed Description

Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.

Definition at line 5 of file IServiceProvider.cs.

Member Function Documentation

◆ GetService()

object System.IServiceProvider.GetService ( Type  serviceType)

Gets the service object of the specified type.

Parameters
serviceTypeAn object that specifies the type of service object to get.
Returns
A service object of type serviceType .-or- null if there is no service object of type serviceType .

Implemented in System.ComponentModel.Design.ServiceContainer, System.ComponentModel.MarshalByValueComponent, and System.ComponentModel.LicenseContext.


The documentation for this interface was generated from the following file: