Table of Contents

Method Remove

Namespace
Innova.Data
Assembly
Innova.Data.dll

Remove(IServiceCollection, Type)

Removes all service descriptors of the specified serviceType from the services collection.

public static IServiceCollection Remove(this IServiceCollection services, Type serviceType)

Parameters

services IServiceCollection

The IServiceCollection to remove service descriptors from.

serviceType Type

The type of the service descriptors to remove.

Returns

IServiceCollection

The modified IServiceCollection.

Remove<T>(IServiceCollection)

Removes all service descriptors of the specified type T from the services collection.

public static IServiceCollection Remove<T>(this IServiceCollection services)

Parameters

services IServiceCollection

The IServiceCollection to remove service descriptors from.

Returns

IServiceCollection

The modified IServiceCollection.

Type Parameters

T

The type of the service descriptors to remove.