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 命名空间