Suppressing the supplied DiagnosticType for the given registration.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- type
- Type: SimpleInjector.DiagnosticsDiagnosticType
The DiagnosticType. - justification
- Type: SystemString
The justification of why the warning must be suppressed.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when justification is a null reference. |
ArgumentException | Thrown when either justification is an empty string or when type is not a valid value of DiagnosticType. |
See Also