Language

ServiceDescriptor.DescribeKeyed メソッド

定義

オーバーロード

Name 説明
DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)

指定したserviceType、implementationFactory、およびlifetimeを使用して、ServiceDescriptorのインスタンスを作成します。

DescribeKeyed(Type, Object, Type, ServiceLifetime)

指定したserviceType、implementationType、およびlifetimeを使用して、ServiceDescriptorのインスタンスを作成します。

DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)

ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs

指定したserviceType、implementationFactory、およびlifetimeを使用して、ServiceDescriptorのインスタンスを作成します。

public:
 static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ DescribeKeyed(Type ^ serviceType, System::Object ^ serviceKey, Func<IServiceProvider ^, System::Object ^, System::Object ^> ^ implementationFactory, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor DescribeKeyed(Type serviceType, object? serviceKey, Func<IServiceProvider,object?,object> implementationFactory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor DescribeKeyed(Type serviceType, object? serviceKey, Func<IServiceProvider,object,object> implementationFactory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
static member DescribeKeyed : Type * obj * Func<IServiceProvider, obj, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Shared Function DescribeKeyed (serviceType As Type, serviceKey As Object, implementationFactory As Func(Of IServiceProvider, Object, Object), lifetime As ServiceLifetime) As ServiceDescriptor

パラメーター

serviceType
Type

サービスの種類。

serviceKey
Object

サービスの ServiceKey 。

implementationFactory
Func<IServiceProvider,Object,Object>

サービス実装の新しいインスタンスを作成するファクトリ。

lifetime
ServiceLifetime

サービスの有効期間。

戻り値

ServiceDescriptorの新しいインスタンス。

適用対象

DescribeKeyed(Type, Object, Type, ServiceLifetime)

ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs

指定したserviceType、implementationType、およびlifetimeを使用して、ServiceDescriptorのインスタンスを作成します。

public:
 static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ DescribeKeyed(Type ^ serviceType, System::Object ^ serviceKey, Type ^ implementationType, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor DescribeKeyed(Type serviceType, object? serviceKey, Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
static member DescribeKeyed : Type * obj * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Shared Function DescribeKeyed (serviceType As Type, serviceKey As Object, implementationType As Type, lifetime As ServiceLifetime) As ServiceDescriptor

パラメーター

serviceType
Type

サービスの種類。

serviceKey
Object

サービスの ServiceKey 。

implementationType
Type

実装の型。

lifetime
ServiceLifetime

サービスの有効期間。

戻り値

ServiceDescriptorの新しいインスタンス。

適用対象