EntityProviderFactory.IServiceProvider.GetService(Type) Méthode

Définition

Retourne la classe demandée IServiceProvider .

 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 dans Visual Basic) pour chaque autre type.

Implémente

S’applique à