ServiceDescriptor.DescribeKeyed Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
Belirtilen |
DescribeKeyed(Type, Object, Type, ServiceLifetime) |
Belirtilen |
DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
Belirtilen serviceType
, implementationFactory
ve lifetime
ile bir örneği ServiceDescriptor oluşturur.
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
Parametreler
- serviceType
- Type
Hizmetin türü.
- serviceKey
- Object
Hizmetin ServiceKey .
- implementationFactory
- Func<IServiceProvider,Object,Object>
Hizmet uygulamasının yeni örneklerini oluşturmak için bir fabrika.
- lifetime
- ServiceLifetime
Hizmetin ömrü.
Döndürülenler
Yeni bir ServiceDescriptor örneği.
Şunlara uygulanır
DescribeKeyed(Type, Object, Type, ServiceLifetime)
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
Belirtilen serviceType
, implementationType
ve lifetime
ile bir örneği ServiceDescriptor oluşturur.
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
Parametreler
- serviceType
- Type
Hizmetin türü.
- serviceKey
- Object
Hizmetin ServiceKey .
- implementationType
- Type
Uygulamanın türü.
- lifetime
- ServiceLifetime
Hizmetin ömrü.
Döndürülenler
Yeni bir ServiceDescriptor örneği.