FormsAuthenticationCredentials 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為使用 表單式驗證的 ASP.NET 應用程式配置使用者憑證。
public ref class FormsAuthenticationCredentials sealed : System::Configuration::ConfigurationElement
public sealed class FormsAuthenticationCredentials : System.Configuration.ConfigurationElement
type FormsAuthenticationCredentials = class
inherit ConfigurationElement
Public NotInheritable Class FormsAuthenticationCredentials
Inherits ConfigurationElement
- 繼承
備註
這個FormsAuthenticationCredentials類別提供了一種程式化的方式,可以程式化地存取並修改credentials設定檔區段中的某個區forms段authentication元素。 此類型屬於包含 FormsAuthenticationConfiguration、 FormsAuthenticationUserCollectionFormsAuthenticationUser 、 及 類型組成的群。 除了集合類型外,其他所有類型都直接影響底層的配置標籤。
警告
在 [credentials] 區段中儲存使用者認證 不安全。 請改用 Azure Key Vault。
Note
可以 FormsAuthenticationCredentials 依據由 MachineToApplication所定義的限制,將資訊寫入設定檔的相關區段。 任何嘗試在階層結構中不允許的層級寫入設定檔,解析器都會產生錯誤訊息。 不過,你可以用這個類別讀取階層中任何層級的設定資訊。 為了安全與可擴展性,建議使用 Azure Key Vault 來儲存使用者憑證。
建構函式
| 名稱 | Description |
|---|---|
| FormsAuthenticationCredentials() |
初始化 FormsAuthenticationCredentials 類別的新執行個體。 |