API
ValidateScopes
Enables built-in validation of scoped resolution rules.
Formal Syntax & Structure
csharp syntaxcsharp
new ServiceProviderOptions { ValidateScopes = true }Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.new ServiceProviderOptions { ValidateScopes = true }