Update options.md (#23765)

pull/23767/head
Rick Anderson 2021-11-05 12:01:40 -10:00 committed by GitHub
parent 40eda6978c
commit c2a13ad315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ The following class implements <xref:Microsoft.Extensions.Options.IValidateOptio
`IValidateOptions` enables moving the validation code out of `StartUp` and into a class.
Using the preceding code, validation is enabled in `Startup.ConfigureServices` with the following code:
Using the preceding code, validation is enabled in *Program.cs* with the following code:
[!code-csharp[](options/samples/6.x/OptionsValidationSample/Program.cs?name=snippet_xm)]