IServiceProvider Interface

Definition

Define un mecanismo para recuperar un objeto de servicio, es decir, un objeto que proporciona compatibilidad personalizada a otros objetos.Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.

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

Remarks

Esta interfaz se implementa mediante una clase o un tipo de valor que proporciona un servicio a otros objetos.This interface is implemented by a class or value type that provides a service to other objects.

El método GetService de esta interfaz obtiene el objeto que proporciona el servicio.The GetService method of this interface obtains the object that provides the service.

La interfaz IServiceProvider se implementa mediante una serie de tipos, como System.Web.HttpContext, System.ComponentModel.LicenseContext, System.ComponentModel.MarshalByValueComponenty System.ComponentModel.Design.ServiceContainer.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)

Obtiene el objeto de servicio del tipo especificado.Gets the service object of the specified type.

Applies to

See also