语言

MembershipSection.HashAlgorithmType 属性

定义

获取或设置用于敏感成员身份信息的加密类型。

public:
 property System::String ^ HashAlgorithmType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("hashAlgorithmType", DefaultValue="")]
public string HashAlgorithmType { get; set; }
[<System.Configuration.ConfigurationProperty("hashAlgorithmType", DefaultValue="")>]
member this.HashAlgorithmType : string with get, set
Public Property HashAlgorithmType As String

属性值

用于加密敏感成员身份信息的加密类型。

属性

示例

下面的代码示例演示如何使用该 HashAlgorithmType 属性。 该代码示例是 MembershipSection 类中的一个较大示例的一部分。

// Display HashAlgorithmType value.
Console.WriteLine("HashAlgorithmType: {0}", 
  configSection.HashAlgorithmType);
' Display HashAlgorithmType value.
Console.WriteLine("HashAlgorithmType: {0}", _
 configSection.HashAlgorithmType)

注解

在运行时,成员身份系统绑定到适当的哈希算法类型,然后在加密成员身份信息时使用此类型。 如果未设置该 HashAlgorithmType 属性,则成员身份系统默认为 Validation 类中的 MachineKeySection 属性。

适用于