EntityProviderFactory::IServiceProvider::GetService Method (Type^)

 

Returns the requested IServiceProvider class.

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

private:
virtual Object^ GetService(
	Type^ serviceType
) sealed = IServiceProvider::GetService

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: