Fix API ref (#6253)

pull/6257/head
Luke Latham 2018-05-07 14:25:54 -05:00 committed by Rick Anderson
parent 8003dbbaca
commit 4cf3968c7b
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ An options class must be non-abstract with a public parameterless constructor. T
[!code-csharp[](options/sample/Models/MyOptions.cs?name=snippet1)]
The `MyOptions` class is added to the service container with [IConfigureOptions<TOptions>](/dotnet/api/microsoft.extensions.options.iconfigureoptions-1) and bound to configuration:
The `MyOptions` class is added to the service container with [Configure<TOptions>(IServiceCollection, IConfiguration)](/dotnet/api/microsoft.extensions.dependencyinjection.optionsconfigurationservicecollectionextensions.configure#Microsoft_Extensions_DependencyInjection_OptionsConfigurationServiceCollectionExtensions_Configure__1_Microsoft_Extensions_DependencyInjection_IServiceCollection_Microsoft_Extensions_Configuration_IConfiguration_) and bound to configuration:
[!code-csharp[](options/sample/Startup.cs?name=snippet_Example1)]