MachineKeySection.DataProtectorType プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
データ保護機能の種類の名前を取得または設定します。 既定値は、Empty です。
public:
property System::String ^ DataProtectorType { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
[System.Configuration.ConfigurationProperty("dataProtectorType", DefaultValue="")]
public string DataProtectorType { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("dataProtectorType", DefaultValue="")>]
member this.DataProtectorType : string with get, set
Public Property DataProtectorType As String
プロパティ値
データ保護機能の種類の名前。
- 属性
注釈
ASP.NET のカスタム データ保護アルゴリズムを指定するには、 MachineKeySection.CompatibilityMode プロパティを Framework45 に設定し、このプロパティを、 DataProtector クラスから派生するクラスを表す文字列に設定します。 この文字列は、静的DataProtector.Create ファクトリ メソッドに渡されるproviderClass パラメーターに対応します。 指定したクラスは、Framework45 オプションを指定しない場合でも、MachineKey.ProtectメソッドおよびMachineKey.Unprotect メソッドによって使用されます。
このプロパティを設定する場合は、 ApplicationName プロパティも設定する必要があります。