ApplicationMetadataHostBuilderExtensions.UseApplicationMetadata Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a configuration provider for application metadata and binds a model object onto the configuration.
public static Microsoft.Extensions.Hosting.IHostBuilder UseApplicationMetadata (this Microsoft.Extensions.Hosting.IHostBuilder builder, string sectionName = "ambientmetadata:application");
static member UseApplicationMetadata : Microsoft.Extensions.Hosting.IHostBuilder * string -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseApplicationMetadata (builder As IHostBuilder, Optional sectionName As String = "ambientmetadata:application") As IHostBuilder
Parameters
- builder
- IHostBuilder
The host builder.
- sectionName
- String
Section name to bind configuration from. Default set to "ambientmetadata:application".
Returns
The value of builder
.
Exceptions
builder
is null
.
sectionName
is either null
, empty, or whitespace.
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.