次の方法で共有


HttpsRedirectionServicesExtensions.AddHttpsRedirection メソッド

定義

HTTPS リダイレクト サービスを追加します。

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

パラメーター

services
IServiceCollection

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

configureOptions
Action<HttpsRedirectionOptions>

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

戻り値

適用対象