Bagikan melalui


AntiforgeryOptions.RequireSsl Properti

Definisi

Perhatian

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

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

true setara dengan Always. false setara dengan None.

Menentukan apakah SSL diperlukan agar sistem antiforgery beroperasi. Jika pengaturan ini 'true' dan permintaan non-SSL masuk ke sistem, semua API antiforgery akan gagal.

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

Nilai Properti

Atribut

Berlaku untuk