TypeProvider.GetService(Type) TypeProvider.GetService(Type) TypeProvider.GetService(Type) TypeProvider.GetService(Type) Method

Definición

Obtiene el Object que proporciona el servicio Type designado.Gets the Object that provides the designated service Type.

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public object GetService (Type serviceType);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object

Parámetros

serviceType
Type Type Type Type

Type del servicio que Object va a proporcionar.The service Type that the Object is to provide.

Devoluciones

El Object que proporciona el servicio Type designado.The Object that provides the designated service Type.

Implementaciones

Comentarios

Si el IServiceProvider encapsulado asociado a esta instancia es una referencia NULL (Nothing en Visual Basic), se devuelve una referencia NULL (Nothing).If the encapsulated IServiceProvider associated with this instance is a null reference (Nothing in Visual Basic) then a null reference (Nothing) is returned.

Se aplica a