Langue

ServiceDescriptor.DescribeKeyed Méthode

Définition

Surcharges

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

Crée une instance avec ServiceDescriptor le serviceType, implementationFactoryet lifetime.

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Crée une instance avec ServiceDescriptor le serviceType, implementationTypeet lifetime.

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

Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs

Crée une instance avec ServiceDescriptor le serviceType, implementationFactoryet lifetime.

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

Paramètres

serviceType
Type

Type du service.

serviceKey
Object

Le ServiceKey service.

implementationFactory
Func<IServiceProvider,Object,Object>

Fabrique pour créer de nouvelles instances de l’implémentation de service.

lifetime
ServiceLifetime

Durée de vie du service.

Retours

Nouvelle instance de ServiceDescriptor.

S’applique à

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs

Crée une instance avec ServiceDescriptor le serviceType, implementationTypeet lifetime.

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

Paramètres

serviceType
Type

Type du service.

serviceKey
Object

Le ServiceKey service.

implementationType
Type

Type de l’implémentation.

lifetime
ServiceLifetime

Durée de vie du service.

Retours

Nouvelle instance de ServiceDescriptor.

S’applique à