MachineKeySection.DataProtectorType Özellik

Tanım

Veri koruyucusu türünün adını alır veya ayarlar. Varsayılan değer: 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

Özellik Değeri

Veri koruyucusu türünün adı.

Öznitelikler

Açıklamalar

ASP.NET için özel veri koruma algoritmaları belirtmek için özelliğini MachineKeySection.CompatibilityMode olarak ayarlayın Framework45 ve bu özelliği sınıfından türetilen bir sınıfı temsil eden bir dize olarak DataProtector ayarlayın. Bu dize, statik providerClass fabrika yöntemine geçirilen parametreye karşılık gelirDataProtector.Create. Belirttiğiniz sınıf, seçeneğini belirtmeseniz MachineKey.Protect bile ve MachineKey.Unprotect yöntemleri tarafından Framework45 kullanılır.

Bu özelliği ayarlarsanız, özelliğini de ayarlamanız ApplicationName gerekir.

Şunlara uygulanır