EntityProviderFactory.IServiceProvider.GetService(Type) Método

Definición

Devuelve la clase IServiceProvider solicitada.

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

Parámetros

serviceType
Type

Type que se va a devolver.

Devoluciones

Nueva instancia de IServiceProvider. Los tipos admitidos son DbProviderServices y System.Data.IEntityAdapter. Devuelve null (o Nothing en Visual Basic) para todos los demás tipos.

Implementaciones

Se aplica a