Bewerken

Delen via


EntityProviderFactory.IServiceProvider.GetService(Type) Method

Definition

Returns the requested IServiceProvider class.

 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

Parameters

serviceType
Type

The Type to return.

Returns

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

Implements

Applies to