AntiforgeryOptions.RequireSsl Proprietà

Definizione

Attenzione

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

Questa proprietà è obsoleta e verrà rimossa in una versione futura. L'alternativa consigliata consiste nel impostare su Cookie.

true equivale a: Always. false equivale a: None.

Specifica se SSL è necessario per il funzionamento del sistema antiforgery. Se questa impostazione è "true" e una richiesta non SSL viene inserita nel sistema, tutte le API antiforgery avranno esito negativo.

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

Valore della proprietà

Attributi

Si applica a