IServiceCollection Interface

Specifies the contract for a collection of service descriptors.

Namespace
Microsoft.Extensions.DependencyInjection
Assemblies
  • Microsoft.Extensions.DependencyInjection.Abstractions

Syntax

public interface IServiceCollection : IList<ServiceDescriptor>, ICollection<ServiceDescriptor>, IEnumerable<ServiceDescriptor>, IEnumerable
interface Microsoft.Extensions.DependencyInjection.IServiceCollection