다음을 통해 공유


KeyedServiceExtensions.GetServiceByName<TService> 메서드

정의

이름으로 서비스를 획득합니다.

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

형식 매개 변수

TService

매개 변수

services
IServiceProvider
name
String

반환

TService

적용 대상