Compartir a través de


KeyedServiceExtensions.GetServiceByName<TService> Método

Definición

Adquiera un servicio por nombre.

public static TService GetServiceByName<TService> (this IServiceProvider services, string name) where TService : class;
static member GetServiceByName : IServiceProvider * string -> 'Service (requires 'Service : null)
<Extension()>
Public Function GetServiceByName(Of TService As Class) (services As IServiceProvider, name As String) As TService

Parámetros de tipo

TService

Parámetros

services
IServiceProvider
name
String

Devoluciones

TService

Se aplica a