Share via


EntityProviderFactory.IServiceProvider.GetService(Type) Método

Definição

Retorna a classe IServiceProvider solicitada.

 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

Parâmetros

serviceType
Type

O Type a ser retornado.

Retornos

Uma nova instância de IServiceProvider. Os tipos com suporte são DbProviderServices e System.Data.IEntityAdapter. Retorna nulo (ou Nothing no Visual Basic) para todos os outros tipos.

Implementações

Aplica-se a