語言

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該屬性。

適用於