Identity 类

继承层次结构

System.Object
  Microsoft.VisualStudio.Services.Identity.Identity

命名空间:  Microsoft.VisualStudio.Services.Identity
程序集:  Microsoft.VisualStudio.Services.WebApi(在 Microsoft.VisualStudio.Services.WebApi.dll 中)

语法

声明
<DataContractAttribute> _
Public NotInheritable Class Identity
[DataContractAttribute]
public sealed class Identity

Identity 类型公开以下成员。

构造函数

  名称 说明
公共方法 Identity

页首

属性

  名称 说明
公共属性 CustomDisplayName
公共属性 Descriptor
公共属性 DisplayName
公共属性 Id
公共属性 IsActive
公共属性 IsContainer
公共属性 MemberOf
公共属性 Members
公共属性 Properties
公共属性 ProviderDisplayName
公共属性 UniqueUserId

页首

方法

  名称 说明
公共方法 Clone
公共方法 Equals (重写 Object.Equals(Object)。)
公共方法 GetHashCode (重写 Object.GetHashCode()。)
公共方法 GetProperty<T>
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 SetProperty
公共方法 ToString (重写 Object.ToString()。)
公共方法 TryGetProperty

页首

扩展方法 

  名称 说明
公共扩展方法 GetModifiedProperties (由 IdentityExtensions 定义。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Services.Identity 命名空间