FormsAuthenticationConfiguration.Protection プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > FormsAuthenticationConfiguration.Protection プロパティの意味・解説 

FormsAuthenticationConfiguration.Protection プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

Cookie の暗号化に使用される暗号化タイプを取得または設定します。

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Property Protection As
 FormsProtectionEnum
Dim instance As FormsAuthenticationConfiguration
Dim value As FormsProtectionEnum

value = instance.Protection

instance.Protection = value
public FormsProtectionEnum Protection { get;
 set; }
public:
property FormsProtectionEnum Protection {
    FormsProtectionEnum get ();
    void set (FormsProtectionEnum value);
}
/** @property */
public FormsProtectionEnum get_Protection ()

/** @property */
public void set_Protection (FormsProtectionEnum
 value)
public function get Protection
 () : FormsProtectionEnum

public function set Protection
 (value : FormsProtectionEnum)

プロパティ値
FormsProtectionEnum 列挙値の 1 つ。既定値は All です。 メモ   データ検証と暗号化の両方を使用して Cookie を保護する場合は、このプロパティに既定値を使用するようにしてください。このオプションでは、machineKey に基づいて、設定されているデータ検証アルゴリズムを使用します。キーの長さが 48 バイト以上の場合、可能であれば 3DES (Triple-DES) が使用されます。 Cookie のセキュリティを強化するために、RequireSSL を true に設定することもできます。

使用例使用例

Protection プロパティへのアクセス方法を次のコード例に示します。セクションを取得する方法については、FormsAuthenticationConfiguration クラスのトピックにあるコード例を参照してください。

' Get the current Protection.
  Dim currentProtection As FormsProtectionEnum
 = _
  formsAuthentication.Protection

' Set the Protection property.
formsAuthentication.Protection = FormsProtectionEnum.All

// Get the current Protection.
FormsProtectionEnum currentProtection = 
    formsAuthentication.Protection;

// Set the Protection property.
formsAuthentication.Protection = 
    FormsProtectionEnum.All;

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からFormsAuthenticationConfiguration.Protection プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からFormsAuthenticationConfiguration.Protection プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からFormsAuthenticationConfiguration.Protection プロパティ を検索

英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「FormsAuthenticationConfiguration.Protection プロパティ」の関連用語

FormsAuthenticationConfiguration.Protection プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FormsAuthenticationConfiguration.Protection プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS