Stores an item by the given key in the scope.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- key
- Type: SystemObject
The key of the item to insert or override. - item
- Type: SystemObject
The actual item. May be null.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when paramref name="key"/> is a null reference. |
Remarks
See Also