IServiceProvider IServiceProvider IServiceProvider IServiceProvider Interface

Definition

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

public interface class IServiceProvider
[System.Runtime.InteropServices.ComVisible(false)]
public interface IServiceProvider
type IServiceProvider = interface
Public Interface IServiceProvider
Derived
Attributes

Remarks

This interface is implemented by a class or value type that provides a service to other objects.

The GetService method of this interface obtains the object that provides the service.

The IServiceProvider interface is implemented by a number of types, including System.Web.HttpContext, System.ComponentModel.LicenseContext, System.ComponentModel.MarshalByValueComponent, and System.ComponentModel.Design.ServiceContainer.

Methods

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Gets the service object of the specified type.

Applies to

See Also