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);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The native code for an IEnumerable<serviceType> might not be available at runtime.")]
public static System.Collections.Generic.IEnumerable<object?> GetKeyedServices(this IServiceProvider provider, Type serviceType, object? serviceKey);
public static System.Collections.Generic.IEnumerable<object?> GetKeyedServices(this IServiceProvider provider, Type serviceType, object? serviceKey);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The native code for an IEnumerable<serviceType> might not be available at runtime.")>]
static member GetKeyedServices : IServiceProvider * Type * obj -> seq<obj>
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型のサービスの列挙。

適用対象