다음을 통해 공유


MachineKeySection.DataProtectorType 속성

정의

데이터 보호기 형식의 이름을 가져오거나 설정합니다. 기본값은 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 대한 사용자 지정 데이터 보호 알고리즘을 지정하려면 속성을 설정하여 Framework45 이 속성을 클래스에서 DataProtector 파생되는 클래스를 나타내는 문자열로 설정합니다MachineKeySection.CompatibilityMode. 이 문자열은 providerClass 정적 DataProtector.Create 팩터리 메서드에 전달되는 매개 변수에 해당합니다. 지정한 클래스는 옵션을 지정하지 않더라도 메서드와 MachineKey.Unprotect 메서드에서 Framework45 사용됩니다MachineKey.Protect.

이 속성을 설정하는 경우 속성도 설정 ApplicationName 해야 합니다.

적용 대상