ServiceDescriptor.DescribeKeyed Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
Crea un'istanza di ServiceDescriptor con gli oggetti |
DescribeKeyed(Type, Object, Type, ServiceLifetime) |
Crea un'istanza di ServiceDescriptor con gli oggetti |
DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)
- Origine:
- ServiceDescriptor.cs
- Origine:
- ServiceDescriptor.cs
- Origine:
- ServiceDescriptor.cs
- Origine:
- ServiceDescriptor.cs
Crea un'istanza di ServiceDescriptor con gli oggetti serviceType
, implementationFactory
e lifetime
specificati.
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
Parametri
- serviceType
- Type
Tipo di servizio.
- serviceKey
- Object
Classe ServiceKey del servizio.
- implementationFactory
- Func<IServiceProvider,Object,Object>
Factory per la creazione di nuove istanze dell'implementazione del servizio.
- lifetime
- ServiceLifetime
Durata del servizio.
Restituisce
Nuova istanza di ServiceDescriptor.
Si applica a
DescribeKeyed(Type, Object, Type, ServiceLifetime)
- Origine:
- ServiceDescriptor.cs
- Origine:
- ServiceDescriptor.cs
- Origine:
- ServiceDescriptor.cs
- Origine:
- ServiceDescriptor.cs
Crea un'istanza di ServiceDescriptor con gli oggetti serviceType
, implementationType
e lifetime
specificati.
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
Parametri
- serviceType
- Type
Tipo di servizio.
- serviceKey
- Object
Classe ServiceKey del servizio.
- implementationType
- Type
Tipo di implementazione.
- lifetime
- ServiceLifetime
Durata del servizio.
Restituisce
Nuova istanza di ServiceDescriptor.