EntityProviderFactory.IServiceProvider.GetService Method (Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the requested IServiceProvider class.

Namespace:   System.Data.EntityClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

object IServiceProvider.GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The Type to return.

Return Value

Type: System.Object

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

.NET Framework
Available since 3.5
Return to top
Show: