次の方法で共有


AntiforgeryOptions.RequireSsl プロパティ

定義

注意事項

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

このプロパティは互換性のために残されていますが、今後のバージョンでは削除される予定です。 別の方法として、 を に Cookie設定することをお勧めします。

trueAlways に相当します。 falseNone に相当します。

偽造防止システムを動作させるために SSL が必要かどうかを指定します。 この設定が "true" で、SSL 以外の要求がシステムに送信されると、すべての偽造防止 API は失敗します。

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

プロパティ値

属性

適用対象