Search Results for

    Show / Hide Table of Contents
    View Source

    Class UserProfile

    Represents a user profile containing basic user information.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.Membership
    Assembly: Umbraco.Core.dll
    Syntax
    public class UserProfile : IProfile

    Constructors

    View Source

    UserProfile(int, string?)

    Initializes a new instance of the UserProfile class.

    Declaration
    public UserProfile(int id, string? name)
    Parameters
    Type Name Description
    int id

    The unique identifier for the profile.

    string name

    The name of the profile.

    Properties

    View Source

    Id

    Gets the unique identifier for the profile.

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    int
    View Source

    Name

    Gets the name of the profile.

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

    Methods

    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(UserProfile?)

    Declaration
    public bool Equals(UserProfile? other)
    Parameters
    Type Name Description
    UserProfile other
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Operators

    View Source

    operator ==(UserProfile, UserProfile)

    Determines whether two UserProfile instances are equal.

    Declaration
    public static bool operator ==(UserProfile left, UserProfile right)
    Parameters
    Type Name Description
    UserProfile left

    The first instance to compare.

    UserProfile right

    The second instance to compare.

    Returns
    Type Description
    bool

    true if the instances are equal; otherwise, false.

    View Source

    operator !=(UserProfile, UserProfile)

    Determines whether two UserProfile instances are not equal.

    Declaration
    public static bool operator !=(UserProfile left, UserProfile right)
    Parameters
    Type Name Description
    UserProfile left

    The first instance to compare.

    UserProfile right

    The second instance to compare.

    Returns
    Type Description
    bool

    true if the instances are not equal; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX