Component.GetService(Type) Método

Definición

Devuelve un objeto que representa el servicio suministrado por Component o por Container.Returns an object that represents a service provided by the Component or by its Container.

protected:
 virtual System::Object ^ GetService(Type ^ service);
protected virtual object GetService (Type service);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Protected Overridable Function GetService (service As Type) As Object

Parámetros

service
Type

Servicio suministrado por Component.A service provided by the Component.

Devoluciones

Objeto Object que representa un servicio proporcionado por el objeto Component o null si el objeto Component no proporciona el servicio especificado.An Object that represents a service provided by the Component, or null if the Component does not provide the specified service.

Comentarios

Este método se puede invalidar mediante una clase derivada.This method can be overridden by a derived class.

Se aplica a

Consulte también: