次の方法で共有


HostFilteringServicesExtensions.AddHostFiltering メソッド

定義

ホスト フィルター ミドルウェアのサービスとオプションを追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHostFiltering(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::AspNetCore::HostFiltering::HostFilteringOptions ^> ^ configureOptions);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHostFiltering (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.HostFiltering.HostFilteringOptions> configureOptions);
static member AddHostFiltering : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.HostFiltering.HostFilteringOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHostFiltering (services As IServiceCollection, configureOptions As Action(Of HostFilteringOptions)) As IServiceCollection

パラメーター

services
IServiceCollection

IServiceCollectionサービスを追加するための 。

configureOptions
Action<HostFilteringOptions>

HostFilteringOptions を構成するデリゲート。

戻り値

適用対象