Compartilhar via


ServiceDescriptor.DescribeKeyed Método

Definição

Sobrecargas

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

Cria uma instância de ServiceDescriptor com o serviceType, o implementationFactory e o lifetime especificados.

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Cria uma instância de ServiceDescriptor com o serviceType, o implementationType e o lifetime especificados.

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

Origem:
ServiceDescriptor.cs
Origem:
ServiceDescriptor.cs
Origem:
ServiceDescriptor.cs
Origem:
ServiceDescriptor.cs

Cria uma instância de ServiceDescriptor com o serviceType, o implementationFactory e o lifetime especificados.

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

Parâmetros

serviceType
Type

O tipo de serviço.

serviceKey
Object

O ServiceKey do serviço.

implementationFactory
Func<IServiceProvider,Object,Object>

Um alocador para criar novas instâncias da implementação de serviço.

lifetime
ServiceLifetime

O tempo de vida do serviço.

Retornos

Uma nova instância de ServiceDescriptor.

Aplica-se a

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Origem:
ServiceDescriptor.cs
Origem:
ServiceDescriptor.cs
Origem:
ServiceDescriptor.cs
Origem:
ServiceDescriptor.cs

Cria uma instância de ServiceDescriptor com o serviceType, o implementationType e o lifetime especificados.

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

Parâmetros

serviceType
Type

O tipo de serviço.

serviceKey
Object

O ServiceKey do serviço.

implementationType
Type

O tipo da implementação.

lifetime
ServiceLifetime

O tempo de vida do serviço.

Retornos

Uma nova instância de ServiceDescriptor.

Aplica-se a