ServiceProviderKeyedServiceExtensions.GetKeyedServices 메서드

정의

오버로드

GetKeyedServices(IServiceProvider, Type, Object)

에서 형식 serviceType 의 서비스 열거형을 IServiceProvider가져옵니다.

GetKeyedServices<T>(IServiceProvider, Object)

에서 형식 T 의 서비스 열거형을 IServiceProvider가져옵니다.

GetKeyedServices(IServiceProvider, Type, Object)

Source:
ServiceProviderKeyedServiceExtensions.cs
Source:
ServiceProviderKeyedServiceExtensions.cs
Source:
ServiceProviderKeyedServiceExtensions.cs
Source:
ServiceProviderKeyedServiceExtensions.cs

에서 형식 serviceType 의 서비스 열거형을 IServiceProvider가져옵니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Object ^> ^ GetKeyedServices(IServiceProvider ^ provider, Type ^ serviceType, System::Object ^ serviceKey);
public static System.Collections.Generic.IEnumerable<object?> GetKeyedServices (this IServiceProvider provider, Type serviceType, object? serviceKey);
static member GetKeyedServices : IServiceProvider * Type * obj -> seq<obj>
<Extension()>
Public Function GetKeyedServices (provider As IServiceProvider, serviceType As Type, serviceKey As Object) As IEnumerable(Of Object)

매개 변수

provider
IServiceProvider

서비스를 검색할 IServiceProvider입니다.

serviceType
Type

가져올 서비스 개체의 형식을 지정하는 개체입니다.

serviceKey
Object

가져올 서비스 개체의 키를 지정하는 개체입니다.

반환

serviceType 형식의 서비스 열거형입니다.

적용 대상

GetKeyedServices<T>(IServiceProvider, Object)

Source:
ServiceProviderKeyedServiceExtensions.cs
Source:
ServiceProviderKeyedServiceExtensions.cs
Source:
ServiceProviderKeyedServiceExtensions.cs
Source:
ServiceProviderKeyedServiceExtensions.cs

에서 형식 T 의 서비스 열거형을 IServiceProvider가져옵니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetKeyedServices(IServiceProvider ^ provider, System::Object ^ serviceKey);
public static System.Collections.Generic.IEnumerable<T> GetKeyedServices<T> (this IServiceProvider provider, object? serviceKey);
static member GetKeyedServices : IServiceProvider * obj -> seq<'T>
<Extension()>
Public Function GetKeyedServices(Of T) (provider As IServiceProvider, serviceKey As Object) As IEnumerable(Of T)

형식 매개 변수

T

가져올 서비스 개체의 형식입니다.

매개 변수

provider
IServiceProvider

서비스를 검색할 IServiceProvider입니다.

serviceKey
Object

가져올 서비스 개체의 키를 지정하는 개체입니다.

반환

T 형식의 서비스 열거형입니다.

적용 대상