Udostępnij za pośrednictwem


ServiceDescriptor.DescribeKeyed Metoda

Definicja

Przeciążenia

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

Tworzy wystąpienie obiektu ServiceDescriptor z określonymi serviceTypeelementami , i .lifetimeimplementationFactory

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Tworzy wystąpienie obiektu ServiceDescriptor z określonymi serviceTypeelementami , i .lifetimeimplementationType

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

Źródło:
ServiceDescriptor.cs
Źródło:
ServiceDescriptor.cs
Źródło:
ServiceDescriptor.cs
Źródło:
ServiceDescriptor.cs

Tworzy wystąpienie obiektu ServiceDescriptor z określonymi serviceTypeelementami , i .lifetimeimplementationFactory

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

Parametry

serviceType
Type

Typ usługi.

serviceKey
Object

Usługa ServiceKey .

implementationFactory
Func<IServiceProvider,Object,Object>

Fabryka do tworzenia nowych wystąpień implementacji usługi.

lifetime
ServiceLifetime

Okres istnienia usługi.

Zwraca

Nowe wystąpienie elementu ServiceDescriptor.

Dotyczy

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Źródło:
ServiceDescriptor.cs
Źródło:
ServiceDescriptor.cs
Źródło:
ServiceDescriptor.cs
Źródło:
ServiceDescriptor.cs

Tworzy wystąpienie obiektu ServiceDescriptor z określonymi serviceTypeelementami , i .lifetimeimplementationType

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

Parametry

serviceType
Type

Typ usługi.

serviceKey
Object

Usługa ServiceKey .

implementationType
Type

Typ implementacji.

lifetime
ServiceLifetime

Okres istnienia usługi.

Zwraca

Nowe wystąpienie elementu ServiceDescriptor.

Dotyczy