Прочетете на английски Редактиране

Споделяне чрез


EntityProviderFactory.IServiceProvider.GetService(Type) Method

Definition

Returns the requested IServiceProvider class.

C#
object IServiceProvider.GetService(Type serviceType);

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

Продукт Версии
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1