LaunchDarkly Dotnet Server SDK
Search Results for

    Show / Hide Table of Contents

    Class User

    Inheritance
    object
    User
    Implements
    IEquatable<User>
    IJsonSerializable
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LaunchDarkly.Sdk
    Assembly: LaunchDarkly.CommonSdk.dll
    Syntax
    [JsonConverter(typeof(LdJsonConverters.UserConverter))]
    public class User : IEquatable<User>, IJsonSerializable

    Constructors

    User(string, string, string, string, string, string, string, string, string, bool?, ImmutableDictionary<string, LdValue>, ImmutableHashSet<string>)

    Declaration
    public User(string key, string secondary, string ip, string country, string firstName, string lastName, string name, string avatar, string email, bool? anonymous, ImmutableDictionary<string, LdValue> custom, ImmutableHashSet<string> privateAttributeNames)
    Parameters
    Type Name Description
    string key
    string secondary
    string ip
    string country
    string firstName
    string lastName
    string name
    string avatar
    string email
    bool? anonymous
    ImmutableDictionary<string, LdValue> custom
    ImmutableHashSet<string> privateAttributeNames

    Properties

    Anonymous

    Declaration
    public bool Anonymous { get; }
    Property Value
    Type Description
    bool

    Avatar

    Declaration
    public string Avatar { get; }
    Property Value
    Type Description
    string

    Country

    Declaration
    public string Country { get; }
    Property Value
    Type Description
    string

    Custom

    Declaration
    public IImmutableDictionary<string, LdValue> Custom { get; }
    Property Value
    Type Description
    IImmutableDictionary<string, LdValue>

    Email

    Declaration
    public string Email { get; }
    Property Value
    Type Description
    string

    FirstName

    Declaration
    public string FirstName { get; }
    Property Value
    Type Description
    string

    IPAddress

    Declaration
    public string IPAddress { get; }
    Property Value
    Type Description
    string

    Key

    Declaration
    public string Key { get; }
    Property Value
    Type Description
    string

    LastName

    Declaration
    public string LastName { get; }
    Property Value
    Type Description
    string

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    PrivateAttributeNames

    Declaration
    public IImmutableSet<string> PrivateAttributeNames { get; }
    Property Value
    Type Description
    IImmutableSet<string>

    Methods

    Builder(User)

    Declaration
    public static IUserBuilder Builder(User fromUser)
    Parameters
    Type Name Description
    User fromUser
    Returns
    Type Description
    IUserBuilder

    Builder(string)

    Declaration
    public static IUserBuilder Builder(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    IUserBuilder

    Equals(User)

    Declaration
    public bool Equals(User u)
    Parameters
    Type Name Description
    User u
    Returns
    Type Description
    bool

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetAttribute(UserAttribute)

    Declaration
    public LdValue GetAttribute(UserAttribute attribute)
    Parameters
    Type Name Description
    UserAttribute attribute
    Returns
    Type Description
    LdValue

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    WithKey(string)

    Declaration
    public static User WithKey(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    User

    Implements

    IEquatable<T>
    IJsonSerializable
    In this article
    Back to top Generated by DocFX