Comparteix a través de


ApplicationMetadataServiceCollectionExtensions.AddApplicationMetadata Método

Definición

Sobrecargas

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

Agrega una instancia de a un contenedor de ApplicationMetadata inserción de dependencias.

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

Agrega una instancia de a un contenedor de ApplicationMetadata inserción de dependencias.

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

Source:
ApplicationMetadataServiceCollectionExtensions.cs
Source:
ApplicationMetadataServiceCollectionExtensions.cs

Agrega una instancia de a un contenedor de ApplicationMetadata inserción de dependencias.

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

Contenedor de inserción de dependencias al que se va a agregar la instancia.

section
IConfigurationSection

Sección de configuración que se va a enlazar.

Devoluciones

El valor de services.

Excepciones

section o section es null.

Se aplica a

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

Source:
ApplicationMetadataServiceCollectionExtensions.cs
Source:
ApplicationMetadataServiceCollectionExtensions.cs

Agrega una instancia de a un contenedor de ApplicationMetadata inserción de dependencias.

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

Contenedor de inserción de dependencias al que se va a agregar la instancia.

configure
Action<ApplicationMetadata>

Delegado con el que se va a configurar ApplicationMetadata .

Devoluciones

Valor de services>.

Excepciones

services o configure es null.

Se aplica a