ServiceProviderKeyedServiceExtensions.GetKeyedServices Metoda

Definicja

Przeciążenia

GetKeyedServices(IServiceProvider, Type, Object)

Pobiera wyliczenie usług typu serviceType z klasy IServiceProvider.

GetKeyedServices<T>(IServiceProvider, Object)

Pobiera wyliczenie usług typu T z klasy IServiceProvider.

GetKeyedServices(IServiceProvider, Type, Object)

Źródło:
ServiceProviderKeyedServiceExtensions.cs
Źródło:
ServiceProviderKeyedServiceExtensions.cs
Źródło:
ServiceProviderKeyedServiceExtensions.cs
Źródło:
ServiceProviderKeyedServiceExtensions.cs

Pobiera wyliczenie usług typu serviceType z klasy 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)

Parametry

provider
IServiceProvider

Element IServiceProvider do pobrania usług.

serviceType
Type

Obiekt określający typ obiektu usługi do pobrania.

serviceKey
Object

Obiekt określający klucz obiektu usługi do pobrania.

Zwraca

Wyliczanie usług typu serviceType.

Dotyczy

GetKeyedServices<T>(IServiceProvider, Object)

Źródło:
ServiceProviderKeyedServiceExtensions.cs
Źródło:
ServiceProviderKeyedServiceExtensions.cs
Źródło:
ServiceProviderKeyedServiceExtensions.cs
Źródło:
ServiceProviderKeyedServiceExtensions.cs

Pobiera wyliczenie usług typu T z klasy 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)

Parametry typu

T

Typ obiektu usługi do pobrania.

Parametry

provider
IServiceProvider

Element IServiceProvider do pobrania usług.

serviceKey
Object

Obiekt określający klucz obiektu usługi do pobrania.

Zwraca

Wyliczanie usług typu T.

Dotyczy