Retrieves an item from the scope stored by the given key or null when no
item is stored by that key.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- key
- Type: SystemObject
The key of the item to retrieve.
Return Value
Type: ObjectThe stored item or null.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when one of the supplied arguments is a null reference. |
Remarks
See Also