Bagikan melalui


ServiceCollectionDescriptorExtensions.RemoveAll Metode

Definisi

Overload

RemoveAll(IServiceCollection, Type)

Menghapus semua layanan jenis serviceType di IServiceCollection.

RemoveAll<T>(IServiceCollection)

Menghapus semua layanan jenis T di IServiceCollection.

RemoveAll(IServiceCollection, Type)

Sumber:
ServiceCollectionDescriptorExtensions.cs
Sumber:
ServiceCollectionDescriptorExtensions.cs
Sumber:
ServiceCollectionDescriptorExtensions.cs
Sumber:
ServiceCollectionDescriptorExtensions.cs
Sumber:
ServiceCollectionDescriptorExtensions.cs

Menghapus semua layanan jenis serviceType di IServiceCollection.

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

Parameter

serviceType
Type

Jenis layanan yang akan dihapus.

Mengembalikan

Untuk IServiceCollection penautan.

Berlaku untuk

RemoveAll<T>(IServiceCollection)

Sumber:
ServiceCollectionDescriptorExtensions.cs
Sumber:
ServiceCollectionDescriptorExtensions.cs
Sumber:
ServiceCollectionDescriptorExtensions.cs
Sumber:
ServiceCollectionDescriptorExtensions.cs
Sumber:
ServiceCollectionDescriptorExtensions.cs

Menghapus semua layanan jenis T di IServiceCollection.

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

Jenis parameter

T

Parameter

Mengembalikan

Untuk IServiceCollection penautan.

Berlaku untuk