Aracılığıyla paylaş


ServiceCollectionDescriptorExtensions.RemoveAll Yöntem

Tanım

Aşırı Yüklemeler

RemoveAll(IServiceCollection, Type)

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

RemoveAll<T>(IServiceCollection)

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

RemoveAll(IServiceCollection, Type)

Kaynak:
ServiceCollectionDescriptorExtensions.cs
Kaynak:
ServiceCollectionDescriptorExtensions.cs

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

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

Parametreler

serviceType
Type

Kaldırılacak hizmet türü.

Döndürülenler

IServiceCollection Zincirleme için.

Şunlara uygulanır

RemoveAll<T>(IServiceCollection)

Kaynak:
ServiceCollectionDescriptorExtensions.cs
Kaynak:
ServiceCollectionDescriptorExtensions.cs

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

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RemoveAll(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAll<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection);
static member RemoveAll : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RemoveAll(Of T) (collection As IServiceCollection) As IServiceCollection

Tür Parametreleri

T

Parametreler

Döndürülenler

IServiceCollection Zincirleme için.

Şunlara uygulanır