Aracılığıyla paylaş


ServiceCollectionDescriptorExtensions.RemoveAllKeyed Yöntem

Tanım

Aşırı Yüklemeler

RemoveAllKeyed(IServiceCollection, Type, Object)

içindeki collectiontüründeki serviceType tüm hizmetleri kaldırır.

RemoveAllKeyed<T>(IServiceCollection, Object)

içindeki collectiontüründeki T tüm hizmetleri kaldırır.

RemoveAllKeyed(IServiceCollection, Type, Object)

Kaynak:
ServiceCollectionDescriptorExtensions.Keyed.cs
Kaynak:
ServiceCollectionDescriptorExtensions.Keyed.cs
Kaynak:
ServiceCollectionDescriptorExtensions.Keyed.cs
Kaynak:
ServiceCollectionDescriptorExtensions.Keyed.cs

içindeki collectiontüründeki serviceType tüm hizmetleri kaldırır.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RemoveAllKeyed(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection, Type ^ serviceType, System::Object ^ serviceKey);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAllKeyed (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Type serviceType, object? serviceKey);
static member RemoveAllKeyed : Microsoft.Extensions.DependencyInjection.IServiceCollection * Type * obj -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RemoveAllKeyed (collection As IServiceCollection, serviceType As Type, serviceKey As Object) As IServiceCollection

Parametreler

serviceType
Type

Kaldırılacak hizmet türü.

serviceKey
Object

Hizmet anahtarı.

Döndürülenler

IServiceCollection Zincirleme için.

Şunlara uygulanır

RemoveAllKeyed<T>(IServiceCollection, Object)

Kaynak:
ServiceCollectionDescriptorExtensions.Keyed.cs
Kaynak:
ServiceCollectionDescriptorExtensions.Keyed.cs
Kaynak:
ServiceCollectionDescriptorExtensions.Keyed.cs
Kaynak:
ServiceCollectionDescriptorExtensions.Keyed.cs

içindeki collectiontüründeki T tüm hizmetleri kaldırır.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RemoveAllKeyed(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection, System::Object ^ serviceKey);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAllKeyed<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, object? serviceKey);
static member RemoveAllKeyed : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RemoveAllKeyed(Of T) (collection As IServiceCollection, serviceKey As Object) As IServiceCollection

Tür Parametreleri

T

Parametreler

serviceKey
Object

Hizmet anahtarı.

Döndürülenler

IServiceCollection Zincirleme için.

Şunlara uygulanır