ApplicationMetadataServiceCollectionExtensions.AddApplicationMetadata Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddApplicationMetadata(IServiceCollection, IConfigurationSection) |
Ajoute une instance de à un conteneur d’injection de ApplicationMetadata dépendances. |
AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>) |
Ajoute une instance de à un conteneur d’injection de ApplicationMetadata dépendances. |
AddApplicationMetadata(IServiceCollection, IConfigurationSection)
Ajoute une instance de à un conteneur d’injection de ApplicationMetadata dépendances.
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
Paramètres
- services
- IServiceCollection
Conteneur d’injection de dépendances à lequel ajouter le instance.
- section
- IConfigurationSection
Section de configuration à lier.
Retours
la valeur de la propriété services
;
Exceptions
section
ou section
est null
.
S’applique à
AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)
Ajoute une instance de à un conteneur d’injection de ApplicationMetadata dépendances.
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
Paramètres
- services
- IServiceCollection
Conteneur d’injection de dépendances à lequel ajouter le instance.
- configure
- Action<ApplicationMetadata>
Délégué à configurer ApplicationMetadata avec.
Retours
Valeur de services
>.
Exceptions
services
ou configure
est null
.