ServiceDescriptor.DescribeKeyed Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
Crée une instance de ServiceDescriptor avec les |
DescribeKeyed(Type, Object, Type, ServiceLifetime) |
Crée une instance de ServiceDescriptor avec les |
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.