EntityProviderFactory.IServiceProvider.GetService(Type) Méthode

Définition

Retourne la classe IServiceProvider demandée.

 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

Paramètres

serviceType
Type

Type à retourner.

Retours

Nouvelle instance de IServiceProvider. Les types pris en charge sont DbProviderServices et System.Data.IEntityAdapter. Retourne null (ou Nothing en Visual Basic) pour tous les autres types.

Implémente

S’applique à