共用方式為


CookiePolicyOptions.Secure 屬性

定義

影響 Cookie 是否必須是安全。

public:
 property Microsoft::AspNetCore::Http::CookieSecurePolicy Secure { Microsoft::AspNetCore::Http::CookieSecurePolicy get(); void set(Microsoft::AspNetCore::Http::CookieSecurePolicy value); };
public Microsoft.AspNetCore.Http.CookieSecurePolicy Secure { get; set; }
member this.Secure : Microsoft.AspNetCore.Http.CookieSecurePolicy with get, set
Public Property Secure As CookieSecurePolicy

屬性值

適用於