Condividi tramite


ApplicationMetadataServiceCollectionExtensions.AddApplicationMetadata Metodo

Definizione

Overload

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

Aggiunge un'istanza di a un contenitore di ApplicationMetadata inserimento delle dipendenze.

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

Aggiunge un'istanza di a un contenitore di ApplicationMetadata inserimento delle dipendenze.

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

Origine:
ApplicationMetadataServiceCollectionExtensions.cs
Origine:
ApplicationMetadataServiceCollectionExtensions.cs

Aggiunge un'istanza di a un contenitore di ApplicationMetadata inserimento delle dipendenze.

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

Parametri

services
IServiceCollection

Contenitore di inserimento delle dipendenze a cui aggiungere l'istanza.

section
IConfigurationSection

Sezione di configurazione da associare.

Restituisce

Valore di services.

Eccezioni

section o section è null.

Si applica a

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

Origine:
ApplicationMetadataServiceCollectionExtensions.cs
Origine:
ApplicationMetadataServiceCollectionExtensions.cs

Aggiunge un'istanza di a un contenitore di ApplicationMetadata inserimento delle dipendenze.

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

Parametri

services
IServiceCollection

Contenitore di inserimento delle dipendenze a cui aggiungere l'istanza.

configure
Action<ApplicationMetadata>

Delegato da configurare ApplicationMetadata con.

Restituisce

Valore di services>.

Eccezioni

services o configure è null.

Si applica a