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
- IServiceCollection (Inherits: System.​Collections.​Generic.​ICollection<​ServiceDescriptor>System.​Collections.​Generic.​IEnumerable<​ServiceDescriptor>System.​Collections.​IEnumerableSystem.​Collections.​Generic.​IList<​ServiceDescriptor>)
Default implementation of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .
Properties
Methods
public
void
Clear​()
public
System.​Collections.​Generic.​IEnumerator<​ServiceDescriptor>
GetEnumerator​()
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
void
RemoveAt​(int index)
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object