Compartilhar via


ApplicationMetadataServiceCollectionExtensions.AddApplicationMetadata Método

Definição

Sobrecargas

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

Adiciona uma instância de ApplicationMetadata a um contêiner de injeção de dependência.

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

Adiciona uma instância de ApplicationMetadata a um contêiner de injeção de dependência.

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

Origem:
ApplicationMetadataServiceCollectionExtensions.cs

Adiciona uma instância de ApplicationMetadata a um contêiner de injeção de dependência.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddApplicationMetadata(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddApplicationMetadata (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddApplicationMetadata : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddApplicationMetadata (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parâmetros

services
IServiceCollection

O contêiner de injeção de dependência ao qual adicionar a instância.

section
IConfigurationSection

A seção de configuração a ser associada.

Retornos

O valor de services.

Exceções

section ou section é null.

Aplica-se a

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

Origem:
ApplicationMetadataServiceCollectionExtensions.cs

Adiciona uma instância de ApplicationMetadata a um contêiner de injeção de dependência.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddApplicationMetadata(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::AmbientMetadata::ApplicationMetadata ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddApplicationMetadata (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.AmbientMetadata.ApplicationMetadata> configure);
static member AddApplicationMetadata : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.AmbientMetadata.ApplicationMetadata> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddApplicationMetadata (services As IServiceCollection, configure As Action(Of ApplicationMetadata)) As IServiceCollection

Parâmetros

services
IServiceCollection

O contêiner de injeção de dependência ao qual adicionar a instância.

configure
Action<ApplicationMetadata>

O delegado com o qual configurar ApplicationMetadata .

Retornos

O valor de services>.

Exceções

services ou configure é null.

Aplica-se a