FormsAuthenticationConfiguration.Protection プロパティ
アセンブリ: 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;

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からFormsAuthenticationConfiguration.Protection プロパティを検索する場合は、下記のリンクをクリックしてください。

- FormsAuthenticationConfiguration.Protection プロパティのページへのリンク