共用方式為


FormsAuthentication 成員

提供驗證服務實作,該實作會使用從網域服務產生的 DomainContext 來執行表單驗證,該網域服務則會實作 IAuthentication 介面。

下表列出 FormsAuthentication 型別公開的成員。

公用 建構函式

  名稱 說明
  FormsAuthentication 初始化 FormsAuthentication 類別的新執行個體。

頂端

公用 屬性

(另請參閱 受保護的 屬性)

  名稱 說明
public property DomainContext  取得或設定這個服務所委派、驗證、載入及儲存至的網域內容。 (繼承自 WebAuthenticationService)
public property DomainContextType  取得或設定網域內容的型別。 (繼承自 WebAuthenticationService)
public property IsBusy  取得值,指出非同步作業是否正在進行中。 (繼承自 AuthenticationService)
public property IsLoadingUser  取得值,指出非同步的 LoadUser 作業是否正在進行中。 (繼承自 AuthenticationService)
public property IsLoggingIn  取得值,指出非同步的 Login 作業是否正在進行中。 (繼承自 AuthenticationService)
public property IsLoggingOut  取得值,指出非同步的 Logout 作業是否正在進行中。 (繼承自 AuthenticationService)
public property IsSavingUser  取得值,指出非同步的 SaveUser 作業是否正在進行中。 (繼承自 AuthenticationService)
public property User  取得表示已驗證之使用者的主體。 (繼承自 AuthenticationService)

頂端

受保護的 屬性

  名稱 說明
protected property SupportsCancellation  取得值,這個值指出此服務是否支援取消。 (繼承自 WebAuthenticationService)

頂端

公用 方法

(另請參閱 受保護的 方法)

  名稱 說明
public method Equals  多載。 (繼承自 Object)
public method GetHashCode  (繼承自 Object)
public method GetType  (繼承自 Object)
public method LoadUser  多載。 以非同步方式從伺服器載入已驗證的使用者。 (繼承自 AuthenticationService)
public method Login  多載。 (繼承自 AuthenticationService)
public method Logout  多載。 (繼承自 AuthenticationService)
public methodstatic ReferenceEquals  (繼承自 Object)
public method SaveUser  多載。 (繼承自 AuthenticationService)
public method ToString  (繼承自 Object)

頂端

受保護的 方法

  名稱 說明
protected method BeginLoadUser  (繼承自 WebAuthenticationService)
protected method BeginLogin  (繼承自 WebAuthenticationService)
protected method BeginLogout  (繼承自 WebAuthenticationService)
protected method BeginSaveUser  (繼承自 WebAuthenticationService)
protected method CancelLoadUser  (繼承自 WebAuthenticationService)
protected method CancelLogin  (繼承自 WebAuthenticationService)
protected method CancelLogout  (繼承自 WebAuthenticationService)
protected method CancelSaveUser  (繼承自 WebAuthenticationService)
protected method CreateDefaultUser  建立預設使用者。 (繼承自 WebAuthenticationService)
protected method EndLoadUser  (繼承自 WebAuthenticationService)
protected method EndLogin  (繼承自 WebAuthenticationService)
protected method EndLogout  (繼承自 WebAuthenticationService)
protected method EndSaveUser  (繼承自 WebAuthenticationService)
protected method Finalize  (繼承自 Object)
protected method Initialize  初始化這個驗證服務。 (繼承自 WebAuthenticationService)
protected method MemberwiseClone  (繼承自 Object)
protected method OnPropertyChanged  (繼承自 AuthenticationService)
protected method RaisePropertyChanged  (繼承自 AuthenticationService)

頂端

公用 事件

  名稱 說明
public event LoggedIn  當新的使用者成功登入時發生。 (繼承自 AuthenticationService)
public event LoggedOut  當使用者成功登出時發生。 (繼承自 AuthenticationService)

頂端

明確介面實作

  名稱 說明
  System.ComponentModel.INotifyPropertyChanged.PropertyChanged  (繼承自 AuthenticationService)

頂端

另請參閱

參考

FormsAuthentication 類別
System.ServiceModel.DomainServices.Client.ApplicationServices 命名空間