다음을 통해 공유


ApplicationMetadataServiceCollectionExtensions.AddApplicationMetadata 메서드

정의

오버로드

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

의 instance ApplicationMetadata 종속성 주입 컨테이너에 추가합니다.

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

의 instance ApplicationMetadata 종속성 주입 컨테이너에 추가합니다.

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

Source:
ApplicationMetadataServiceCollectionExtensions.cs

의 instance ApplicationMetadata 종속성 주입 컨테이너에 추가합니다.

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

매개 변수

services
IServiceCollection

instance 추가할 종속성 주입 컨테이너입니다.

section
IConfigurationSection

바인딩할 구성 섹션입니다.

반환

services의 값

예외

section 또는 sectionnull인 경우

적용 대상

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

Source:
ApplicationMetadataServiceCollectionExtensions.cs

의 instance ApplicationMetadata 종속성 주입 컨테이너에 추가합니다.

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

매개 변수

services
IServiceCollection

instance 추가할 종속성 주입 컨테이너입니다.

configure
Action<ApplicationMetadata>

구성할 ApplicationMetadata 대리자입니다.

반환

의 값입니다 services>.

예외

services 또는 configurenull인 경우

적용 대상