IIdentityProvider 介面

命名空間:  Microsoft.VisualStudio.Services.Identity
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
<InheritedExportAttribute> _
Public Interface IIdentityProvider
[InheritedExportAttribute]
public interface IIdentityProvider

IIdentityProvider 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 AvailableIdentityAttributes 對應的識別使用的特定提供者屬性。
公用屬性 IsSyncable 這個屬性表示此識別提供者是否支援 syncing。

回頁首

方法

  名稱 描述
公用方法 CreateDescriptor(TeamFoundationRequestContext, IIdentity) 從 ASP.NET 所提供的 IIdentity 執行個體的建立描述項為已驗證的使用者 (透過 Web 要求的 HttpContext.User.Identity 屬性)。
公用方法 CreateDescriptor(TeamFoundationRequestContext, String) 如果它們支援解析識別擴充之顯示名稱的描述元,提供者可能實作 CreateDescriptor。這可讓 TFS 使用的顯示名稱。未知的使用者和解決使用提供者加入至完整的識別。注意:,如果無法剖析顯示名稱對於 unqiue 使用者,您應該傳回 null。
公用方法 GetIdentity 從 ASP.NET 識別來源取得識別。
公用方法 GetPossibleIdentityTypes 表示提供的描述元可能代表使用者群組,或兩者。
公用方法 ServiceStart
公用方法 SupportedIdentityTypes 取得存放區提供的識別型別的完整 .NET 類別型別。這是一個類別實作 IIdentity。例如 System.Security.Principal.WindowsIdentity」。
公用方法 SyncMembers
公用方法 TrySyncIdentity

回頁首

請參閱

參考

Microsoft.VisualStudio.Services.Identity 命名空間