Delen via


EntityProviderFactory.IServiceProvider.GetService(Type) Method

Definition

Returns the requested IServiceProvider class.

object IServiceProvider.GetService (Type serviceType);
Function GetService (serviceType As Type) As Object Implements IServiceProvider.GetService

Parameters

serviceType
Type

The Type to return.

Returns

A new instance of IServiceProvider. The supported types are DbProviderServices , System.Data.Entity.Core.Common.DbCommandDefinitionBuilder , and System.Data.IEntityAdapter . Returns null (or Nothing in Visual Basic) for every other type.

Implements

Applies to