ServiceProviderKeyedServiceExtensions.GetKeyedServices メソッド

定義

オーバーロード

GetKeyedServices(IServiceProvider, Type, Object)

から 型 serviceType のサービスの列挙体を取得します IServiceProvider

GetKeyedServices<T>(IServiceProvider, Object)

から 型 T のサービスの列挙体を取得します IServiceProvider

GetKeyedServices(IServiceProvider, Type, Object)

ソース:
ServiceProviderKeyedServiceExtensions.cs
ソース:
ServiceProviderKeyedServiceExtensions.cs
ソース:
ServiceProviderKeyedServiceExtensions.cs
ソース:
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)

ソース:
ServiceProviderKeyedServiceExtensions.cs
ソース:
ServiceProviderKeyedServiceExtensions.cs
ソース:
ServiceProviderKeyedServiceExtensions.cs
ソース:
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 型のサービスの列挙体。

適用対象