Share via


AntiforgeryOptions.RequireSsl Eigenschaft

Definition

Achtung

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

Diese Eigenschaft ist veraltet und wird in einer zukünftigen Version entfernt. Die empfohlene Alternative besteht darin, auf Cookiefestzulegen.

true entspricht Always. false entspricht None.

Gibt an, ob SSL für den Betrieb des Antiforgery-Systems erforderlich ist. Wenn diese Einstellung "true" ist und eine Nicht-SSL-Anforderung in das System eingeht, schlagen alle Antiforgery-APIs fehl.

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

Eigenschaftswert

Attribute

Gilt für: