Partager via


ServiceDescriptor.DescribeKeyed Méthode

Définition

Surcharges

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

Crée une instance de ServiceDescriptor avec les serviceType, implementationFactory et lifetime spécifiés.

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Crée une instance de ServiceDescriptor avec les serviceType, implementationType et lifetime spécifiés.

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

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

Crée une instance de ServiceDescriptor avec les serviceType, implementationFactory et lifetime spécifiés.

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);
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

ServiceKey du service.

implementationFactory
Func<IServiceProvider,Object,Object>

Fabrique pour créer des instances de l’implémentation du 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 de ServiceDescriptor avec les serviceType, implementationType et lifetime spécifiés.

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

ServiceKey du service.

implementationType
Type

Type de l’implémentation.

lifetime
ServiceLifetime

Durée de vie du service.

Retours

Nouvelle instance de ServiceDescriptor.

S’applique à