共用方式為


IAuthentication 泛型介面

定義封裝驗證網域之網域服務執行個體的方法。

命名空間: System.ServiceModel.DomainServices.Server.ApplicationServices
組件: System.ServiceModel.DomainServices.Server (於 system.servicemodel.domainservices.server.dll)

使用方式

'用途
Dim instance As IAuthentication(Of T)

語法

'宣告
<AuthenticationServiceAttribute> _
Public Interface IAuthentication(Of T As IUser)
[AuthenticationServiceAttribute] 
public interface IAuthentication<T> where T : IUser
[AuthenticationServiceAttribute] 
generic<typename T> where T : IUser
public interface class IAuthentication

GenericParameters

  • T
    使用者實體的類型。

備註

實作此介面的網域服務將同時在用戶端和伺服器上用來填入使用者。WebAuthenticationService 類別可搭配針對任何實作此介面的網域服務所產生的 DomainContext 使用。

UpdateUser 方法設計為更新方法,可透過在用戶端上呼叫 SubmitChanges 方法的方式叫用。在開發您的應用程式時,這個實作有一項相當重要的考量。當您呼叫 SaveUser 以叫用 UpdateUser 方法時,會提交 DomainContext 中發生的所有變更,因而可能叫用其他更新方法。相對地,當您在 DomainContext 上叫用其他更新方法時,會提交網域內容中的所有變更,並且可能叫用 UpdateUser 方法。

平台

開發平台

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 、Windows Server 2008 和 Windows 2000

目標平台

另請參閱

參考

IAuthentication 成員
System.ServiceModel.DomainServices.Server.ApplicationServices 命名空間