Bagikan melalui


SessionOptions.CookieSecure Properti

Definisi

Perhatian

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.

Properti ini usang dan akan dihapus dalam versi mendatang. Alternatif yang direkomendasikan adalah pada Cookie.

Menentukan apakah cookie hanya boleh dikirimkan pada permintaan HTTPS.

public:
 property Microsoft::AspNetCore::Http::CookieSecurePolicy CookieSecure { Microsoft::AspNetCore::Http::CookieSecurePolicy get(); void set(Microsoft::AspNetCore::Http::CookieSecurePolicy value); };
public Microsoft.AspNetCore.Http.CookieSecurePolicy CookieSecure { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.")]
public Microsoft.AspNetCore.Http.CookieSecurePolicy CookieSecure { get; set; }
member this.CookieSecure : Microsoft.AspNetCore.Http.CookieSecurePolicy with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.")>]
member this.CookieSecure : Microsoft.AspNetCore.Http.CookieSecurePolicy with get, set
Public Property CookieSecure As CookieSecurePolicy

Nilai Properti

Atribut

Berlaku untuk