Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​DependencyInjection.​ServiceCollection

Assembly: Microsoft.Extensions.DependencyInjection.Abstractions

Inheritance: object → ServiceCollection

Implemented Interfaces

Default implementation of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .

Properties

public int
Count
public bool
IsReadOnly
Item

Methods

public void
Clear​()
public bool
Contains​(ServiceDescriptor item)
public void
CopyTo​(ServiceDescriptor[] array, int arrayIndex)
public int
IndexOf​(ServiceDescriptor item)
public void
Insert​(int index, ServiceDescriptor item)
public void
MakeReadOnly​()
Makes this collection read-only.
Remarks After the collection is marked as read-only, any further attempt to modify it throws an <see cref="T:System.InvalidOperationException" /> .
public bool
Remove​(ServiceDescriptor item)
public void
RemoveAt​(int index)
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object