Teilen über


ServiceDescriptor.DescribeKeyed Methode

Definition

Überlädt

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

Erstellt eine Instanz der ServiceDescriptor-Klasse mit den angegebenen Parametern serviceType, implementationFactory und lifetime.

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Erstellt eine Instanz der ServiceDescriptor-Klasse mit den angegebenen Parametern serviceType, implementationType und lifetime.

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

Quelle:
ServiceDescriptor.cs
Quelle:
ServiceDescriptor.cs
Quelle:
ServiceDescriptor.cs
Quelle:
ServiceDescriptor.cs

Erstellt eine Instanz der ServiceDescriptor-Klasse mit den angegebenen Parametern serviceType, implementationFactory und 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);
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

Parameter

serviceType
Type

Der Typ des Dienstes.

serviceKey
Object

Der ServiceKey des Diensts.

implementationFactory
Func<IServiceProvider,Object,Object>

Eine Factory zum Erstellen neuer Instanzen der Dienstimplementierung.

lifetime
ServiceLifetime

Die Lebensdauer des Dienstes.

Gibt zurück

Eine neue Instanz von ServiceDescriptor.

Gilt für:

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Quelle:
ServiceDescriptor.cs
Quelle:
ServiceDescriptor.cs
Quelle:
ServiceDescriptor.cs
Quelle:
ServiceDescriptor.cs

Erstellt eine Instanz der ServiceDescriptor-Klasse mit den angegebenen Parametern serviceType, implementationType und 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

Parameter

serviceType
Type

Der Typ des Dienstes.

serviceKey
Object

Der ServiceKey des Diensts.

implementationType
Type

Der Typ der Implementierung.

lifetime
ServiceLifetime

Die Lebensdauer des Dienstes.

Gibt zurück

Eine neue Instanz von ServiceDescriptor.

Gilt für: