共用方式為


IdentityServiceCollectionExtensions.ConfigureApplicationCookie 方法

定義

設定應用程式 Cookie。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureApplicationCookie (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configure);
static member ConfigureApplicationCookie : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function ConfigureApplicationCookie (services As IServiceCollection, configure As Action(Of CookieAuthenticationOptions)) As IServiceCollection

參數

services
IServiceCollection

應用程式中可用的服務。

傳回

服務。

適用於