共用方式為


FormsAuthenticationCredentials 類別

設定使用表單驗證之 ASP.NET 應用程式的使用者認證。

Syntax

class FormsAuthenticationCredentials : EmbeddedObject  

方法

這個類別不包含方法。

屬性

下表列出 類別所 FormsAuthenticationCredentials 公開的屬性。

名稱 描述
PasswordFormat 可讀寫 sint32 值,定義用來儲存密碼的加密格式。 可能的值稍後會列在一節中。
Credentials FormsAuthenticationUser值的陣列,指定使用者名稱和密碼認證。

子類別

這個類別不包含子類別。

備註

這個類別的實例包含在 CredentialsFormsAuthenticationConfiguration 類別的 屬性中。

下表列出 屬性的可能值 PasswordFormat 。 預設值為 1 (SHA1) 。

關鍵字 描述
0 Clear 指定不加密的密碼。 這個欄位為常數。
1 SHA1 指定使用 SHA1 雜湊演算法加密密碼。 這個欄位為常數。
2 MD5 指定使用 MD5 雜湊演算法加密密碼。 這個欄位為常數。

繼承階層架構

EmbeddedObject

FormsAuthenticationCredentials

規格需求

類型 Description
Client - Windows Vista 上的 IIS 7.0
- Windows 7 上的 IIS 7.5
- Windows 8上的 IIS 8.0
- Windows 10上的 IIS 10.0
伺服器 - Windows Server 2008 上的 IIS 7.0
- Windows Server 2008 R2 上的 IIS 7.5
- Windows Server 2012上的 IIS 8.0
- Windows Server 2012 R2 上的 IIS 8.5
- Windows Server 2016上的 IIS 10.0
產品 - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0
MOF 檔案 WebAdministration.mof

另請參閱

System.Web.Configuration.FormsAuthPasswordFormatClientCertificateMappingAuthenticationSection 類別
DigestAuthenticationSection 類別
EmbeddedObject 類別
FormsAuthenticationConfiguration 類別
IisClientCertificateMappingAuthenticationSection 類別
PassportAuthentication 類別