MembershipSection.HashAlgorithmType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置用于敏感成员身份信息的加密类型。
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 属性。